Skip to content

KVSPSAADVJobAccountManagement#

Events#

KVSPSAADVOnAfterSetFilterForCalcJobAccAdvanceAmountJobAccForJobAccSchedManagement(Record KVSPSAJob Account, Record KVSPSAJob Acc. Schedule Line, Record KVSPSAJob Acc. Schedule Name, Record KVSPSAJob Column Layout, Option, Record KVSADVAdvanceJobLedgerEntry) :#

Summary: This event is raised when a job account schedule line's cell based on Advance Ledger Entries is being calcualted. You may use this event to exclude unwanted advance ledger entries from the calculation.

[IntegrationEvent(false, false)]
local procedure KVSPSAADVOnAfterSetFilterForCalcJobAccAdvanceAmountJobAccForJobAccSchedManagement(var KVSPSAJobAccount: Record "KVSPSAJob Account"; var KVSPSAJobAccScheduleLine: Record "KVSPSAJob Acc. Schedule Line"; KVSPSAJobAccScheduleName: Record "KVSPSAJob Acc. Schedule Name"; var KVSPSAJobColumnLayout: Record "KVSPSAJob Column Layout"; AmountType: Option; var KVSADVAdvanceJobLedgerEntry: Record "KVSADVAdvanceJobLedgerEntry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAADVJobAccountManagement", 'KVSPSAADVOnAfterSetFilterForCalcJobAccAdvanceAmountJobAccForJobAccSchedManagement', '', false, false)]
local procedure DoSomethingKVSPSAADVOnAfterSetFilterForCalcJobAccAdvanceAmountJobAccForJobAccSchedManagement(var KVSPSAJobAccount: Record "KVSPSAJob Account"; var KVSPSAJobAccScheduleLine: Record "KVSPSAJob Acc. Schedule Line"; KVSPSAJobAccScheduleName: Record "KVSPSAJob Acc. Schedule Name"; var KVSPSAJobColumnLayout: Record "KVSPSAJob Column Layout"; AmountType: Option; var KVSADVAdvanceJobLedgerEntry: Record "KVSADVAdvanceJobLedgerEntry")
begin
end;

Parameters:

  • KVSPSAJobAccount: The Job Account currently being calculated
  • KVSPSAJobAccScheduleLine: The Job Account Schedule Line currently being calculated
  • KVSPSAJobAccScheduleName: The Job Account Schedule related to the current calculation
  • KVSPSAJobColumnLayout: The column layout defining the calculation method
  • AmountType: The type of amount which should be calculated
  • KVSADVAdvanceJobLedgerEntry: The filtered set of advance ledger entries which will be the base of the calculation

KVSPSAADVOnAfterSetFilterForUpdateJobAdvLedgerEntryJobAccNo(Record KVSADVAdvanceJobLedgerEntry, Report KVSPSAUpdate Job Account No., Record Job Ledger Entry) :#

[IntegrationEvent(false, false)]
local procedure KVSPSAADVOnAfterSetFilterForUpdateJobAdvLedgerEntryJobAccNo(var KVSADVAdvanceJobLedgerEntry: Record "KVSADVAdvanceJobLedgerEntry"; KVSPSAUpdateJobAccountNo: Report "KVSPSAUpdate Job Account No."; var JobLedgerEntry: Record "Job Ledger Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAADVJobAccountManagement", 'KVSPSAADVOnAfterSetFilterForUpdateJobAdvLedgerEntryJobAccNo', '', false, false)]
local procedure DoSomethingKVSPSAADVOnAfterSetFilterForUpdateJobAdvLedgerEntryJobAccNo(var KVSADVAdvanceJobLedgerEntry: Record "KVSADVAdvanceJobLedgerEntry"; KVSPSAUpdateJobAccountNo: Report "KVSPSAUpdate Job Account No."; var JobLedgerEntry: Record "Job Ledger Entry")
begin
end;

KVSPSAADVOnAfterUpdateAdvJobLedgerEntryJobAccNo(Record KVSADVAdvanceJobLedgerEntry, Record KVSADVAdvanceJobLedgerEntry, Boolean, Report KVSPSAUpdate Job Account No.) :#

[IntegrationEvent(false, false)]
local procedure KVSPSAADVOnAfterUpdateAdvJobLedgerEntryJobAccNo(var KVSADVAdvanceJobLedgerEntry: Record "KVSADVAdvanceJobLedgerEntry"; OldKVSADVAdvanceJobLedgerEntry: Record "KVSADVAdvanceJobLedgerEntry"; DoIt: Boolean; KVSPSAUpdateJobAccountNo: Report "KVSPSAUpdate Job Account No."): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAADVJobAccountManagement", 'KVSPSAADVOnAfterUpdateAdvJobLedgerEntryJobAccNo', '', false, false)]
local procedure DoSomethingKVSPSAADVOnAfterUpdateAdvJobLedgerEntryJobAccNo(var KVSADVAdvanceJobLedgerEntry: Record "KVSADVAdvanceJobLedgerEntry"; OldKVSADVAdvanceJobLedgerEntry: Record "KVSADVAdvanceJobLedgerEntry"; DoIt: Boolean; KVSPSAUpdateJobAccountNo: Report "KVSPSAUpdate Job Account No.")
begin
end;

KVSPSAADVOnBeforeCalcJobAccAdvanceAmountJobAccForJobAccSchedManagement(Record KVSPSAJob Account, Record KVSPSAJob Acc. Schedule Line, Record KVSPSAJob Acc. Schedule Name, Record KVSPSAJob Column Layout, Option, Decimal, Boolean) :#

Summary: This event is raised before a job account schedule line is being calculated based on Advance Ledger Entries. You may use this event to disable the default calculation and implement your own.

[IntegrationEvent(false, false)]
local procedure KVSPSAADVOnBeforeCalcJobAccAdvanceAmountJobAccForJobAccSchedManagement(var KVSPSAJobAccount: Record "KVSPSAJob Account"; var KVSPSAJobAccScheduleLine: Record "KVSPSAJob Acc. Schedule Line"; KVSPSAJobAccScheduleName: Record "KVSPSAJob Acc. Schedule Name"; var KVSPSAJobColumnLayout: Record "KVSPSAJob Column Layout"; AmountType: Option; var ColValue: Decimal; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAADVJobAccountManagement", 'KVSPSAADVOnBeforeCalcJobAccAdvanceAmountJobAccForJobAccSchedManagement', '', false, false)]
local procedure DoSomethingKVSPSAADVOnBeforeCalcJobAccAdvanceAmountJobAccForJobAccSchedManagement(var KVSPSAJobAccount: Record "KVSPSAJob Account"; var KVSPSAJobAccScheduleLine: Record "KVSPSAJob Acc. Schedule Line"; KVSPSAJobAccScheduleName: Record "KVSPSAJob Acc. Schedule Name"; var KVSPSAJobColumnLayout: Record "KVSPSAJob Column Layout"; AmountType: Option; var ColValue: Decimal; var IsHandled: Boolean)
begin
end;

Parameters:

  • KVSPSAJobAccount: The Job Account currently being calculated
  • KVSPSAJobAccScheduleLine: The Job Account Schedule Line currently being calculated
  • KVSPSAJobAccScheduleName: The Job Account Schedule related to the current calculation
  • KVSPSAJobColumnLayout: The column layout defining the calculation method
  • AmountType: The type of amount which should be calculated
  • ColValue: The result of the calculation
  • IsHandled: Disables the default calculation if set to true.

KVSPSAADVOnBeforeCreateJobAccountEntriesFromAdvancePlanForPSPLine(Record Job, Record KVSPSAJobPSPHeader, Record KVSPSAJobPSPLine, Record KVSADVAdvance Planning Entry) :#

Summary: This event will be raised immediately before the system generates Job Account Lines based on the Advance Planning Lines for a PSP Line. You may use this event to prepare the PSP Line or exclude Advance Planning Entries.

[IntegrationEvent(false, false)]
local procedure KVSPSAADVOnBeforeCreateJobAccountEntriesFromAdvancePlanForPSPLine(Job: Record "Job"; KVSPSAJobPSPHeader: Record "KVSPSAJobPSPHeader"; var KVSPSAJobPSPLine: Record "KVSPSAJobPSPLine"; var KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAADVJobAccountManagement", 'KVSPSAADVOnBeforeCreateJobAccountEntriesFromAdvancePlanForPSPLine', '', false, false)]
local procedure DoSomethingKVSPSAADVOnBeforeCreateJobAccountEntriesFromAdvancePlanForPSPLine(Job: Record "Job"; KVSPSAJobPSPHeader: Record "KVSPSAJobPSPHeader"; var KVSPSAJobPSPLine: Record "KVSPSAJobPSPLine"; var KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry")
begin
end;

Parameters:

  • Job: The Job related to the PSP Line
  • KVSPSAJobPSPHeader: The PSP Header related to the PSP Line
  • KVSPSAJobPSPLine: The PSP Line for which Job Account Entries will be generated
  • KVSADVAdvancePlanningEntry: The Advance Planning Entries on which the Job Acount Entries will be based

KVSPSAADVOnBeforeFindJobAccountWithPhaseCodeOnAdvanceJobLedgEntryCode(Record KVSADVAdvanceJobLedgerEntry, Code[10], Code[20], Code[20], Code[20]) :#

Summary: This event will be raised immediately before the Job Account for an Advance Ledger Entry is calculated. You may use this event to alter the parameters for the calculation of the job account nos.

[IntegrationEvent(false, false)]
local procedure KVSPSAADVOnBeforeFindJobAccountWithPhaseCodeOnAdvanceJobLedgEntryCode(KVSADVAdvanceJobLedgerEntry: Record "KVSADVAdvanceJobLedgerEntry"; var JobType: Code[10]; var ProdPostGrp: Code[20]; var WorkPackageCode: Code[20]; var PhaseCode: Code[20]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAADVJobAccountManagement", 'KVSPSAADVOnBeforeFindJobAccountWithPhaseCodeOnAdvanceJobLedgEntryCode', '', false, false)]
local procedure DoSomethingKVSPSAADVOnBeforeFindJobAccountWithPhaseCodeOnAdvanceJobLedgEntryCode(KVSADVAdvanceJobLedgerEntry: Record "KVSADVAdvanceJobLedgerEntry"; var JobType: Code[10]; var ProdPostGrp: Code[20]; var WorkPackageCode: Code[20]; var PhaseCode: Code[20])
begin
end;

Parameters:

  • KVSADVAdvanceJobLedgerEntry: The Advance Ledger Entry for which the job account is being calculated
  • JobType: The Job Type, based on the Job, used for the calculation of the job account
  • ProdPostGrp: The Product Posting Group, based on the G/L Account, used for the calculation of the job account
  • WorkPackageCode: The Work Package, based on the PSP Line, used for the calculation of the job account
  • PhaseCode: The Phase Code, based on the PSP Line, used for the calculation of the job account