Skip to content

KVSPSADistributionEntryMgt#

Procedures#

UpdateJobBudgetEntries(Record KVSPSA Job Budget Line) :#

Summary: Updates the job budget entries based on the provided job budget line. This procedure recalculates the unit cost, updates the invoicing quantity, and creates or modifies job budget entries as necessary. It also handles the distribution of costs and sales budgets, ensuring that all entries are correctly aligned with the job budget line's specifications. It checks for sales budget blocking and ensures that invoicing quantities are consistent with distributed quantities. If the sales budget is blocked, it verifies that the invoicing quantity matches the distributed quantity. If there are discrepancies, it raises an error with a detailed message.

procedure UpdateJobBudgetEntries(JobBudgetLine: Record "KVSPSA Job Budget Line"): 

Parameters:

  • JobBudgetLine: The job budget line record that contains the details for updating job budget entries.

Events#

KVSPSAOnAfterTransferValuesFromBudgetLine(Record KVSPSA Job Budget Line) :#

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterTransferValuesFromBudgetLine(var JobBudgetLine: Record "KVSPSA Job Budget Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSADistributionEntryMgt", 'KVSPSAOnAfterTransferValuesFromBudgetLine', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterTransferValuesFromBudgetLine(var JobBudgetLine: Record "KVSPSA Job Budget Line")
begin
end;