KVSPSAJobDeferralMgt#
Procedures#
IsJobDeferralActivated() : Boolean#
Summary: Shows, if job ledger entries will be built for deferral postings.
procedure IsJobDeferralActivated(): Boolean
Returns: true, if activated
UpdateJobToLedgerEntryNoInGLRegister(Record Gen. Journal Line, Record G/L Register) :#
procedure UpdateJobToLedgerEntryNoInGLRegister(GenJournalLine: Record "Gen. Journal Line"; var GLRegister: Record "G/L Register"):
Events#
KVSPSAOnAfterCalcAmountForDeferralPosting(Record Gen. Journal Line, Record Deferral Posting Buffer, Decimal) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterCalcAmountForDeferralPosting(var TempGenJournalLine: Record "Gen. Journal Line"; DeferralPostingBuffer: Record "Deferral Posting Buffer"; var AmountToDef: Decimal):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobDeferralMgt", 'KVSPSAOnAfterCalcAmountForDeferralPosting', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterCalcAmountForDeferralPosting(var TempGenJournalLine: Record "Gen. Journal Line"; DeferralPostingBuffer: Record "Deferral Posting Buffer"; var AmountToDef: Decimal)
begin
end;
KVSPSAOnAfterGetReplacedSourceCodeBySetupDeferralCode(Code[10], Code[10]) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterGetReplacedSourceCodeBySetupDeferralCode(OldSourceCode: Code[10]; var NewSourceCode: Code[10]):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobDeferralMgt", 'KVSPSAOnAfterGetReplacedSourceCodeBySetupDeferralCode', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterGetReplacedSourceCodeBySetupDeferralCode(OldSourceCode: Code[10]; var NewSourceCode: Code[10])
begin
end;
KVSPSAOnAfterPostJob(Record Gen. Journal Line, Record G/L Entry) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterPostJob(GenJournalLine: Record "Gen. Journal Line"; GLEntry: Record "G/L Entry"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobDeferralMgt", 'KVSPSAOnAfterPostJob', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterPostJob(GenJournalLine: Record "Gen. Journal Line"; GLEntry: Record "G/L Entry")
begin
end;
KVSPSAOnAfterPrepareGenJournalLineForJobDeferralPosting(Record Gen. Journal Line, Record Gen. Journal Line) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterPrepareGenJournalLineForJobDeferralPosting(var NewGenJournalLine: Record "Gen. Journal Line"; GenJournalLine: Record "Gen. Journal Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobDeferralMgt", 'KVSPSAOnAfterPrepareGenJournalLineForJobDeferralPosting', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterPrepareGenJournalLineForJobDeferralPosting(var NewGenJournalLine: Record "Gen. Journal Line"; GenJournalLine: Record "Gen. Journal Line")
begin
end;
KVSPSAOnBeforeAddNonDeductVATCalcAmountForDeferralPosting(Record Gen. Journal Line, Record Gen. Journal Line, Record Deferral Posting Buffer, Decimal, Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeAddNonDeductVATCalcAmountForDeferralPosting(var TempGenJournalLine: Record "Gen. Journal Line"; GenJournalLine: Record "Gen. Journal Line"; DeferralPostingBuffer: Record "Deferral Posting Buffer"; var AmountToDef: Decimal; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobDeferralMgt", 'KVSPSAOnBeforeAddNonDeductVATCalcAmountForDeferralPosting', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeAddNonDeductVATCalcAmountForDeferralPosting(var TempGenJournalLine: Record "Gen. Journal Line"; GenJournalLine: Record "Gen. Journal Line"; DeferralPostingBuffer: Record "Deferral Posting Buffer"; var AmountToDef: Decimal; var IsHandled: Boolean)
begin
end;
KVSPSAOnBeforeCheckingDuplicateDeferralCodesInPurchaseHeader(Record Purchase Header, Record Purchase Line, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Allows you to integrate your own check for double deferral templates and maybe find a different rule set.
[Obsolete('Check is not necessary anymore.', '24.1')]
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCheckingDuplicateDeferralCodesInPurchaseHeader(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobDeferralMgt", 'KVSPSAOnBeforeCheckingDuplicateDeferralCodesInPurchaseHeader', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeCheckingDuplicateDeferralCodesInPurchaseHeader(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
begin
end;
Parameters:
SalesHeader
:SalesLine
:IsHandled
:
KVSPSAOnBeforeGetReplacedSourceCodeBySetupDeferralCode(Code[10], Code[10], Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeGetReplacedSourceCodeBySetupDeferralCode(OldSourceCode: Code[10]; var NewSourceCode: Code[10]; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobDeferralMgt", 'KVSPSAOnBeforeGetReplacedSourceCodeBySetupDeferralCode', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeGetReplacedSourceCodeBySetupDeferralCode(OldSourceCode: Code[10]; var NewSourceCode: Code[10]; var IsHandled: Boolean)
begin
end;
KVSPSAOnBeforePostJobPreparedGenJournalFromGenJournal(Record Gen. Journal Line, Record Gen. Journal Line, Record G/L Entry, Record Deferral Line, Boolean, Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforePostJobPreparedGenJournalFromGenJournal(var PreparedGenJournalLine: Record "Gen. Journal Line"; SourceGenJournalLine: Record "Gen. Journal Line"; SourceGLEntry: Record "G/L Entry"; DeferralLine: Record "Deferral Line"; IsDefLine: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobDeferralMgt", 'KVSPSAOnBeforePostJobPreparedGenJournalFromGenJournal', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforePostJobPreparedGenJournalFromGenJournal(var PreparedGenJournalLine: Record "Gen. Journal Line"; SourceGenJournalLine: Record "Gen. Journal Line"; SourceGLEntry: Record "G/L Entry"; DeferralLine: Record "Deferral Line"; IsDefLine: Boolean; var IsHandled: Boolean)
begin
end;
KVSPSAOnBeforePostJobPreparedGenJournalFromSalesPurchDoc(Record Gen. Journal Line, Record Gen. Journal Line, Record G/L Entry, Record Deferral Posting Buffer, Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforePostJobPreparedGenJournalFromSalesPurchDoc(var PreparedGenJournalLine: Record "Gen. Journal Line"; SourceGenJournalLine: Record "Gen. Journal Line"; GLEntry: Record "G/L Entry"; DeferralPostingBuffer: Record "Deferral Posting Buffer"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobDeferralMgt", 'KVSPSAOnBeforePostJobPreparedGenJournalFromSalesPurchDoc', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforePostJobPreparedGenJournalFromSalesPurchDoc(var PreparedGenJournalLine: Record "Gen. Journal Line"; SourceGenJournalLine: Record "Gen. Journal Line"; GLEntry: Record "G/L Entry"; DeferralPostingBuffer: Record "Deferral Posting Buffer"; var IsHandled: Boolean)
begin
end;