KVSPSA Quantity Allocation
Events
KVSPSAOnAfterGetRelevantDays(Date, Date, Option, Code[10], Code[20], Record Date, Integer) :
[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterGetRelevantDays(StartingDate: Date; EndingDate: Date; Selection: Option; CalendarCode: Code[10]; ResNo: Code[20]; var TempDate: Record "Date"; var QtyWorkDays: Integer):
KVSPSAOnAfterInsertBudgetEntry(Record KVSPSA Job Budget Entry, Record Date) :
[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterInsertBudgetEntry(var JobBudgetEntry: Record "KVSPSA Job Budget Entry"; var Date: Record "Date"):
KVSPSAOnBeforeInsertBudgetEntry(Record KVSPSA Job Budget Entry, Record Date) :
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeInsertBudgetEntry(var JobBudgetEntry: Record "KVSPSA Job Budget Entry"; var Date: Record "Date"):
KVSPSAOnBeforePerformAllocation(Record KVSPSA Job Budget Line, Integer, Boolean, Boolean) :
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforePerformAllocation(var JobBudgetLine: Record "KVSPSA Job Budget Line"; var Selection: Integer; var WithMessage: Boolean; var IsHandled: Boolean):
KVSPSAOnGetRoundingPrecision(Boolean, Decimal) :
[IntegrationEvent(false, false)]
local procedure KVSPSAOnGetRoundingPrecision(IsItem: Boolean; var RoundingPrecision: Decimal):
KVSPSAOnBeforeStartAutomaticQtyAllocation(Record KVSPSA Job Budget Line, Boolean, Boolean) :
Summary: Allows to add or skip checks before performing quantity allocation. Also allows to completly handle how the procedure is performed
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeStartAutomaticQtyAllocation(var JobBudgetLine: Record "KVSPSA Job Budget Line"; var SkipChecksBeforePerformQtyAllocation: Boolean; var IsHandled: Boolean):
Parameters:
JobBudgetLine: The record from "KVSPSA Job Budget Line" for which the quantity allocation will be performedSkipChecksBeforePerformQtyAllocation: Allows to skip the checks before performing the quantity allocationIsHandled: Allows to skip the default code