Skip to content

KVSADVAdvancePostingSales#

Events#

OnAfterUpdateAdvanceFieldsForGenJnlLineByApplicationTo(Record Gen. Journal Line, Record Cust. Ledger Entry, Integer, Code[20]) :#

[IntegrationEvent(false, false)]
local procedure OnAfterUpdateAdvanceFieldsForGenJnlLineByApplicationTo(var GenJournalLine: Record "Gen. Journal Line"; CVLedgerEntry: Record "Cust. Ledger Entry"; DocType: Integer; DocNo: Code[20]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnAfterUpdateAdvanceFieldsForGenJnlLineByApplicationTo', '', false, false)]
local procedure DoSomethingOnAfterUpdateAdvanceFieldsForGenJnlLineByApplicationTo(var GenJournalLine: Record "Gen. Journal Line"; CVLedgerEntry: Record "Cust. Ledger Entry"; DocType: Integer; DocNo: Code[20])
begin
end;

OnAfterFillAdvanceFieldsInCVLedgerEntryByGenJnlLine(Record Cust. Ledger Entry, Record Gen. Journal Line) :#

[IntegrationEvent(false, false)]
local procedure OnAfterFillAdvanceFieldsInCVLedgerEntryByGenJnlLine(var CVLedgerEntry: Record "Cust. Ledger Entry"; GenJournalLine: Record "Gen. Journal Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnAfterFillAdvanceFieldsInCVLedgerEntryByGenJnlLine', '', false, false)]
local procedure DoSomethingOnAfterFillAdvanceFieldsInCVLedgerEntryByGenJnlLine(var CVLedgerEntry: Record "Cust. Ledger Entry"; GenJournalLine: Record "Gen. Journal Line")
begin
end;

OnBeforeTestAdvFieldsForGenJnlLineApplication(Record Gen. Journal Line, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeTestAdvFieldsForGenJnlLineApplication(GenJnlLine: Record "Gen. Journal Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnBeforeTestAdvFieldsForGenJnlLineApplication', '', false, false)]
local procedure DoSomethingOnBeforeTestAdvFieldsForGenJnlLineApplication(GenJnlLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
begin
end;

OnAfterSetAdvFieldsForCVLedgerEntryByCVLedgerEntryBuffer(Record Cust. Ledger Entry, Record CV Ledger Entry Buffer) :#

[IntegrationEvent(false, false)]
local procedure OnAfterSetAdvFieldsForCVLedgerEntryByCVLedgerEntryBuffer(var CVLedgerEntry: Record "Cust. Ledger Entry"; CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnAfterSetAdvFieldsForCVLedgerEntryByCVLedgerEntryBuffer', '', false, false)]
local procedure DoSomethingOnAfterSetAdvFieldsForCVLedgerEntryByCVLedgerEntryBuffer(var CVLedgerEntry: Record "Cust. Ledger Entry"; CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer")
begin
end;

OnAfterCopyAdvanceFieldsFromCVLedgEntryToCVLedgerEntryBuffer(Record CV Ledger Entry Buffer, Record Cust. Ledger Entry) :#

[IntegrationEvent(false, false)]
local procedure OnAfterCopyAdvanceFieldsFromCVLedgEntryToCVLedgerEntryBuffer(var CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer"; CVLedgerEntry: Record "Cust. Ledger Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnAfterCopyAdvanceFieldsFromCVLedgEntryToCVLedgerEntryBuffer', '', false, false)]
local procedure DoSomethingOnAfterCopyAdvanceFieldsFromCVLedgEntryToCVLedgerEntryBuffer(var CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer"; CVLedgerEntry: Record "Cust. Ledger Entry")
begin
end;

OnBeforeCheckDocHeaderOpenAdvance(Record Sales Header, Boolean, Boolean, Boolean, Integer, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckDocHeaderOpenAdvance(DocumentHeader: Record "Sales Header"; var SkipCreating: Boolean; var ErrorMessage: Boolean; var ExistingOfAdvance: Boolean; var AdvanceChainNo: Integer; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnBeforeCheckDocHeaderOpenAdvance', '', false, false)]
local procedure DoSomethingOnBeforeCheckDocHeaderOpenAdvance(DocumentHeader: Record "Sales Header"; var SkipCreating: Boolean; var ErrorMessage: Boolean; var ExistingOfAdvance: Boolean; var AdvanceChainNo: Integer; var IsHandled: Boolean)
begin
end;

OnBeforeCheckFillNetAmountLCY(Record Gen. Journal Line, Boolean, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckFillNetAmountLCY(GenJnlLine: Record "Gen. Journal Line"; var Result: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnBeforeCheckFillNetAmountLCY', '', false, false)]
local procedure DoSomethingOnBeforeCheckFillNetAmountLCY(GenJnlLine: Record "Gen. Journal Line"; var Result: Boolean; var IsHandled: Boolean)
begin
end;

OnAfterInitAdvCVLedgEntry(Record Cust. Ledger Entry, Record Gen. Journal Line) :#

[IntegrationEvent(false, false)]
local procedure OnAfterInitAdvCVLedgEntry(var CVLedgerEntry: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnAfterInitAdvCVLedgEntry', '', false, false)]
local procedure DoSomethingOnAfterInitAdvCVLedgEntry(var CVLedgerEntry: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line")
begin
end;

OnAfterAddOldApplicationAdvFieldsInDtldCVLedgEntry(Record Detailed CV Ledg. Entry Buffer, Record CV Ledger Entry Buffer, Record Cust. Ledger Entry, Record Gen. Journal Line) :#

[IntegrationEvent(false, false)]
local procedure OnAfterAddOldApplicationAdvFieldsInDtldCVLedgEntry(var DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; var OldCVLedgEntryBuf: Record "CV Ledger Entry Buffer"; CVLedgerEntry: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnAfterAddOldApplicationAdvFieldsInDtldCVLedgEntry', '', false, false)]
local procedure DoSomethingOnAfterAddOldApplicationAdvFieldsInDtldCVLedgEntry(var DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; var OldCVLedgEntryBuf: Record "CV Ledger Entry Buffer"; CVLedgerEntry: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line")
begin
end;

OnBeforeUpdateCalculatedAdvVATAmounts(Record VAT Entry, Record Detailed CV Ledg. Entry Buffer, Decimal, Decimal, Integer, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateCalculatedAdvVATAmounts(var TempAdvVATEntry: Record "VAT Entry" temporary; DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; var SumVATAmount: Decimal; var SumVATBase: Decimal; var TotalOfVatEntry: Integer; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnBeforeUpdateCalculatedAdvVATAmounts', '', false, false)]
local procedure DoSomethingOnBeforeUpdateCalculatedAdvVATAmounts(var TempAdvVATEntry: Record "VAT Entry" temporary; DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; var SumVATAmount: Decimal; var SumVATBase: Decimal; var TotalOfVatEntry: Integer; var IsHandled: Boolean)
begin
end;

OnBeforeCheckShouldClosInvoiceDocument(Record Sales Header, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckShouldClosInvoiceDocument(var DocumentHeader: Record "Sales Header"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnBeforeCheckShouldClosInvoiceDocument', '', false, false)]
local procedure DoSomethingOnBeforeCheckShouldClosInvoiceDocument(var DocumentHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;

OnAfterCheckDocumentHeaderForAdvancePosting(Record Sales Header) :#

[IntegrationEvent(false, false)]
local procedure OnAfterCheckDocumentHeaderForAdvancePosting(DocumentHeader: Record "Sales Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnAfterCheckDocumentHeaderForAdvancePosting', '', false, false)]
local procedure DoSomethingOnAfterCheckDocumentHeaderForAdvancePosting(DocumentHeader: Record "Sales Header")
begin
end;

OnAfterCheckAppliedCVLedgerEntryOfDocumentHeaderForAdvancePosting(Record Sales Header, Record Cust. Ledger Entry) :#

[IntegrationEvent(false, false)]
local procedure OnAfterCheckAppliedCVLedgerEntryOfDocumentHeaderForAdvancePosting(DocumentHeader: Record "Sales Header"; CVLedgerEntry: Record "Cust. Ledger Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnAfterCheckAppliedCVLedgerEntryOfDocumentHeaderForAdvancePosting', '', false, false)]
local procedure DoSomethingOnAfterCheckAppliedCVLedgerEntryOfDocumentHeaderForAdvancePosting(DocumentHeader: Record "Sales Header"; CVLedgerEntry: Record "Cust. Ledger Entry")
begin
end;

OnAfterTransferAdvFieldsFromDocumentLinesToGenJnlLine(Record Gen. Journal Line, Record Sales Line) :#

[IntegrationEvent(false, false)]
local procedure OnAfterTransferAdvFieldsFromDocumentLinesToGenJnlLine(var GenJnlLine: Record "Gen. Journal Line"; var TotalDocumentLine: Record "Sales Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnAfterTransferAdvFieldsFromDocumentLinesToGenJnlLine', '', false, false)]
local procedure DoSomethingOnAfterTransferAdvFieldsFromDocumentLinesToGenJnlLine(var GenJnlLine: Record "Gen. Journal Line"; var TotalDocumentLine: Record "Sales Line")
begin
end;

OnAfterTransferAdvFieldsFromDocumentHeaderToGenJnlLine(Record Gen. Journal Line, Record Sales Header) :#

[IntegrationEvent(false, false)]
local procedure OnAfterTransferAdvFieldsFromDocumentHeaderToGenJnlLine(var GenJournalLine: Record "Gen. Journal Line"; DocumentHeader: Record "Sales Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnAfterTransferAdvFieldsFromDocumentHeaderToGenJnlLine', '', false, false)]
local procedure DoSomethingOnAfterTransferAdvFieldsFromDocumentHeaderToGenJnlLine(var GenJournalLine: Record "Gen. Journal Line"; DocumentHeader: Record "Sales Header")
begin
end;

OnAfterTransferAdvFieldsFromDocumentLineToInvoicePostingBuffer(Record Sales Line, Record Invoice Post. Buffer) :#

[IntegrationEvent(false, false)]
local procedure OnAfterTransferAdvFieldsFromDocumentLineToInvoicePostingBuffer(var DocumentLine: Record "Sales Line"; var InvoicePostBuffer: Record "Invoice Post. Buffer"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnAfterTransferAdvFieldsFromDocumentLineToInvoicePostingBuffer', '', false, false)]
local procedure DoSomethingOnAfterTransferAdvFieldsFromDocumentLineToInvoicePostingBuffer(var DocumentLine: Record "Sales Line"; var InvoicePostBuffer: Record "Invoice Post. Buffer")
begin
end;

OnAfterAddAdvanceFieldsToGenJournalLineByAppliedDocumentHeader(Record Gen. Journal Line, Record Sales Header) :#

[IntegrationEvent(false, false)]
local procedure OnAfterAddAdvanceFieldsToGenJournalLineByAppliedDocumentHeader(var GenJournalLine: Record "Gen. Journal Line"; AppliedDocumentHeader: Record "Sales Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnAfterAddAdvanceFieldsToGenJournalLineByAppliedDocumentHeader', '', false, false)]
local procedure DoSomethingOnAfterAddAdvanceFieldsToGenJournalLineByAppliedDocumentHeader(var GenJournalLine: Record "Gen. Journal Line"; AppliedDocumentHeader: Record "Sales Header")
begin
end;

OnAfterTransferAdvFieldsFromDocumentLineToNewInvoicePostingBuffer(Record Sales Line, Record Invoice Posting Buffer) :#

[IntegrationEvent(false, false)]
local procedure OnAfterTransferAdvFieldsFromDocumentLineToNewInvoicePostingBuffer(var DocumentLine: Record "Sales Line"; var InvoicePostBuffer: Record "Invoice Posting Buffer"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnAfterTransferAdvFieldsFromDocumentLineToNewInvoicePostingBuffer', '', false, false)]
local procedure DoSomethingOnAfterTransferAdvFieldsFromDocumentLineToNewInvoicePostingBuffer(var DocumentLine: Record "Sales Line"; var InvoicePostBuffer: Record "Invoice Posting Buffer")
begin
end;

OnBeforeCompareDocumentLineWithAdvancePlanningEntry(Record Sales Header, Record Sales Line, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCompareDocumentLineWithAdvancePlanningEntry(DocumentHeader: Record "Sales Header"; DocumentLine: Record "Sales Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnBeforeCompareDocumentLineWithAdvancePlanningEntry', '', false, false)]
local procedure DoSomethingOnBeforeCompareDocumentLineWithAdvancePlanningEntry(DocumentHeader: Record "Sales Header"; DocumentLine: Record "Sales Line"; var IsHandled: Boolean)
begin
end;

OnCompareDocumentLineWithAdvancePlanningEntryElse(Record Sales Header, Record Sales Line, Record KVSADVAdvance Planning Entry, Enum KVSADVCompAdvPlanWithInv) :#

[IntegrationEvent(false, false)]
local procedure OnCompareDocumentLineWithAdvancePlanningEntryElse(DocumentHeader: Record "Sales Header"; DocumentLine: Record "Sales Line"; var AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; ComparisionType: Enum "KVSADVCompAdvPlanWithInv"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnCompareDocumentLineWithAdvancePlanningEntryElse', '', false, false)]
local procedure DoSomethingOnCompareDocumentLineWithAdvancePlanningEntryElse(DocumentHeader: Record "Sales Header"; DocumentLine: Record "Sales Line"; var AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; ComparisionType: Enum "KVSADVCompAdvPlanWithInv")
begin
end;

OnAfterUpdateAdvancePlanFromDocumentLineBeforeModify(Record Sales Header, Record Sales Line, Record KVSADVAdvance Planning Entry) :#

[IntegrationEvent(false, false)]
local procedure OnAfterUpdateAdvancePlanFromDocumentLineBeforeModify(DocumentHeader: Record "Sales Header"; DocumentLine: Record "Sales Line"; var AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnAfterUpdateAdvancePlanFromDocumentLineBeforeModify', '', false, false)]
local procedure DoSomethingOnAfterUpdateAdvancePlanFromDocumentLineBeforeModify(DocumentHeader: Record "Sales Header"; DocumentLine: Record "Sales Line"; var AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry")
begin
end;

OnBeforeCheckDocumentHeaderForAdvancePosting(Record Sales Header, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckDocumentHeaderForAdvancePosting(SalesHeader: Record "Sales Header"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnBeforeCheckDocumentHeaderForAdvancePosting', '', false, false)]
local procedure DoSomethingOnBeforeCheckDocumentHeaderForAdvancePosting(SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;

OnFindOldPlanningEntryDepositsOnAfterSetFilterSecurityDeposit(Record Sales Header, Record KVSADVSecurityDeposit) :#

[IntegrationEvent(false, false)]
local procedure OnFindOldPlanningEntryDepositsOnAfterSetFilterSecurityDeposit(SalesHeader: Record "Sales Header"; var SecurityDeposit: Record "KVSADVSecurityDeposit"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvancePostingSales", 'OnFindOldPlanningEntryDepositsOnAfterSetFilterSecurityDeposit', '', false, false)]
local procedure DoSomethingOnFindOldPlanningEntryDepositsOnAfterSetFilterSecurityDeposit(SalesHeader: Record "Sales Header"; var SecurityDeposit: Record "KVSADVSecurityDeposit")
begin
end;