Skip to content

KVSPSADistributionMgt#

Procedures#

TransferValuesFromBudgetDistribution(Record KVSPSAJobPSPLine, Boolean) :#

Summary: Transfers values from the budget distribution to the job PSP line. This procedure updates the job PSP line with budget values and calculates the total cost and price. If CommitChanges is true, it commits the changes to the database. It also checks for missing information in the PSP line and sends notifications if necessary. The procedure uses the JobPSPLine record to filter and retrieve budget lines related to the job. It updates the job budget entries and calculates the total cost and price for the PSP line. If the job PSP line is empty, it sets the "Line Updated" field to true and sends a notification if necessary.

procedure TransferValuesFromBudgetDistribution(var JobPSPLine: Record "KVSPSAJobPSPLine"; CommitChanges: Boolean): 

Parameters:

  • JobPSPLine: The job PSP line record to update with budget values.
  • CommitChanges: Indicates whether to commit the changes to the database.

Events#

KVSPSAOnAfterTransferValuesFromBudgetDistribution(Record KVSPSAJobPSPLine, Record KVSPSA Job Budget Line) :#

Summary: Integration event raised after transferring values from budget distribution to job PSP line. This event allows subscribers to perform additional processing or validation after the budget distribution transfer process is completed.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterTransferValuesFromBudgetDistribution(var JobPSPLine: Record "KVSPSAJobPSPLine"; var JobBudgetLine: Record "KVSPSA Job Budget Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSADistributionMgt", 'KVSPSAOnAfterTransferValuesFromBudgetDistribution', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterTransferValuesFromBudgetDistribution(var JobPSPLine: Record "KVSPSAJobPSPLine"; var JobBudgetLine: Record "KVSPSA Job Budget Line")
begin
end;

Parameters:

  • JobPSPLine: The job PSP line record that was updated during the budget distribution transfer process.
  • JobBudgetLine: The job budget line record that was processed during the transfer operation.