KVSPSAPSPCalcMappingMgt#
Events#
KVSPSAOnAfterRecalcPSPByPSPCalcMapping(Record KVSPSAJobPSPLine, Record KVSPSAJobPSPLine, Decimal, Decimal) :#
Summary: Event triggered after recalculating PSP line values based on PSP calculation mapping. Allows subscribers to perform additional processing or modifications after the PSP line has been recalculated with new costs and prices.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterRecalcPSPByPSPCalcMapping(FromJobPSPLine: Record "KVSPSAJobPSPLine"; var JobPSPLine: Record "KVSPSAJobPSPLine"; OldQuantity: Decimal; OldUnitCost: Decimal):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAPSPCalcMappingMgt", 'KVSPSAOnAfterRecalcPSPByPSPCalcMapping', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterRecalcPSPByPSPCalcMapping(FromJobPSPLine: Record "KVSPSAJobPSPLine"; var JobPSPLine: Record "KVSPSAJobPSPLine"; OldQuantity: Decimal; OldUnitCost: Decimal)
begin
end;
Parameters:
FromJobPSPLine
: The source job PSP line that provided the calculation basis.JobPSPLine
: The target job PSP line that has been recalculated and can be further modified.OldQuantity
: The previous quantity value before recalculation.OldUnitCost
: The previous unit cost value before recalculation.