KVSPSAJobFixedAssetIntegration#
Events#
KVSPSAOnBeforePostJobJnlLineForFixedAsset(Record Job Journal Line, Record FA Ledger Entry, Option) :#
Summary: Event fired before posting a job journal line for a fixed asset. Allows customization of the job journal line before it is posted to the job ledger. This event is called during fixed asset to job integration processing, enabling extensions to modify job journal line data or add additional validations.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforePostJobJnlLineForFixedAsset(var JobJournalLine: Record "Job Journal Line"; FALedgerEntry: Record "FA Ledger Entry"; PostingMode: Option):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobFixedAssetIntegration", 'KVSPSAOnBeforePostJobJnlLineForFixedAsset', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforePostJobJnlLineForFixedAsset(var JobJournalLine: Record "Job Journal Line"; FALedgerEntry: Record "FA Ledger Entry"; PostingMode: Option)
begin
end;
Parameters:
JobJournalLine
: The job journal line being prepared for posting (passed by reference for modification).FALedgerEntry
: The fixed asset ledger entry that is the source for the job journal line.PostingMode
: The posting mode option indicating how the job ledger entry should be posted (PostWithJobEvaluation, PostWithoutJobEvaluation, etc.).
KVSPSAOnBeforeShouldPostJobLedgerEntryForFALedgerEntry(Record FA Ledger Entry, Option, Boolean) :#
Summary: Event fired to determine if a job ledger entry should be posted for a fixed asset ledger entry. Allows extensions to override the default posting logic. This event enables customization of the decision-making process for whether fixed asset transactions should generate corresponding job ledger entries.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeShouldPostJobLedgerEntryForFALedgerEntry(FALedgerEntry: Record "FA Ledger Entry"; var PostingMode: Option; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobFixedAssetIntegration", 'KVSPSAOnBeforeShouldPostJobLedgerEntryForFALedgerEntry', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeShouldPostJobLedgerEntryForFALedgerEntry(FALedgerEntry: Record "FA Ledger Entry"; var PostingMode: Option; var IsHandled: Boolean)
begin
end;
Parameters:
FALedgerEntry
: The fixed asset ledger entry being evaluated for job posting.PostingMode
: The posting mode option (passed by reference) that determines how the job entry should be posted (NoPosting, PostWithJobEvaluation, PostWithoutJobEvaluation).IsHandled
: Boolean flag (passed by reference) indicating whether the event subscriber has handled the determination and standard logic should be bypassed.
KVSPSAOnFindWorkPackageCodeForFALedgerEntry(Enum FA Ledger Entry FA Posting Type, Record FA Setup, Code[20]) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnFindWorkPackageCodeForFALedgerEntry(FALedgerEntryFAPostingType: Enum "FA Ledger Entry FA Posting Type"; FASetup: Record "FA Setup"; var WorkPackage: Code[20]):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobFixedAssetIntegration", 'KVSPSAOnFindWorkPackageCodeForFALedgerEntry', '', false, false)]
local procedure DoSomethingKVSPSAOnFindWorkPackageCodeForFALedgerEntry(FALedgerEntryFAPostingType: Enum "FA Ledger Entry FA Posting Type"; FASetup: Record "FA Setup"; var WorkPackage: Code[20])
begin
end;
KVSPSAOnGetFALedgerEntryPostingTypeFromPurchaseLine(Record Purchase Line, Enum FA Ledger Entry FA Posting Type) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnGetFALedgerEntryPostingTypeFromPurchaseLine(PurchaseLine: Record "Purchase Line"; var FALedgerEntryFAPostingType: Enum "FA Ledger Entry FA Posting Type"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobFixedAssetIntegration", 'KVSPSAOnGetFALedgerEntryPostingTypeFromPurchaseLine', '', false, false)]
local procedure DoSomethingKVSPSAOnGetFALedgerEntryPostingTypeFromPurchaseLine(PurchaseLine: Record "Purchase Line"; var FALedgerEntryFAPostingType: Enum "FA Ledger Entry FA Posting Type")
begin
end;