KVSADVAdvanceDocCreationSales#
Procedures#
CreateAdvanceInvoicesFromAdvPlan(Record KVSADVAdvance Planning Entry, Record Sales Header) :#
procedure CreateAdvanceInvoicesFromAdvPlan(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Sales Header"):
CreateClosingInvoiceFromAdvancePlan(Record KVSADVAdvance Planning Entry, Record Sales Header) :#
procedure CreateClosingInvoiceFromAdvancePlan(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Sales Header"):
ShowInvoicesAfterCreatedFromAdvPlanningEntries(Record Sales Header) :#
procedure ShowInvoicesAfterCreatedFromAdvPlanningEntries(var CreatedAdvanceDocs: Record "Sales Header"):
GetCVEntriesForClosCreditMemo(Record Sales Header, Record Cust. Ledger Entry) :#
procedure GetCVEntriesForClosCreditMemo(var DocumentHeader: Record "Sales Header"; var TempCVEntriesForClosCreditMemo: Record "Cust. Ledger Entry" temporary):
Events#
OnCheckAdvancePlanningEntriesCanBeTransferredToInvoice(Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnCheckAdvancePlanningEntriesCanBeTransferredToInvoice(AdvanceChain: Record "KVSADVAdvanceChain"; var AdvancePlanningEntries: Record "KVSADVAdvance Planning Entry"; ForClosingInvoice: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnCheckAdvancePlanningEntriesCanBeTransferredToInvoice', '', false, false)]
local procedure DoSomethingOnCheckAdvancePlanningEntriesCanBeTransferredToInvoice(AdvanceChain: Record "KVSADVAdvanceChain"; var AdvancePlanningEntries: Record "KVSADVAdvance Planning Entry"; ForClosingInvoice: Boolean)
begin
end;
OnBeforeCreateAdvanceInvoicesFromAdvPlan(Record KVSADVAdvance Planning Entry, Record Sales Header, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateAdvanceInvoicesFromAdvPlan(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeCreateAdvanceInvoicesFromAdvPlan', '', false, false)]
local procedure DoSomethingOnBeforeCreateAdvanceInvoicesFromAdvPlan(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
OnBeforeUseExistingHeaderForAdvanceInvoiceCreation(Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry, Record Sales Header, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeUseExistingHeaderForAdvanceInvoiceCreation(AdvanceChain: Record "KVSADVAdvanceChain"; var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CurrDocumentHeader: Record "Sales Header"; var CreateDocumentHeader: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeUseExistingHeaderForAdvanceInvoiceCreation', '', false, false)]
local procedure DoSomethingOnBeforeUseExistingHeaderForAdvanceInvoiceCreation(AdvanceChain: Record "KVSADVAdvanceChain"; var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CurrDocumentHeader: Record "Sales Header"; var CreateDocumentHeader: Boolean)
begin
end;
OnBeforeIsDocumentHeaderUseableForAdvPlanEntry(Record Sales Header, Record KVSADVAdvance Planning Entry, Boolean, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeIsDocumentHeaderUseableForAdvPlanEntry(DocumentHeader: Record "Sales Header"; AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var IsUsable: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeIsDocumentHeaderUseableForAdvPlanEntry', '', false, false)]
local procedure DoSomethingOnBeforeIsDocumentHeaderUseableForAdvPlanEntry(DocumentHeader: Record "Sales Header"; AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var IsUsable: Boolean; var IsHandled: Boolean)
begin
end;
OnAfterSetFiltersForCumulatedCVLedgerEntriesV21(Record Cust. Ledger Entry, Record KVSADVAdvanceChain) :#
[IntegrationEvent(false, false)]
local procedure OnAfterSetFiltersForCumulatedCVLedgerEntriesV21(var CVLedgerEntry: Record "Cust. Ledger Entry"; AdvanceChain: Record "KVSADVAdvanceChain"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnAfterSetFiltersForCumulatedCVLedgerEntriesV21', '', false, false)]
local procedure DoSomethingOnAfterSetFiltersForCumulatedCVLedgerEntriesV21(var CVLedgerEntry: Record "Cust. Ledger Entry"; AdvanceChain: Record "KVSADVAdvanceChain")
begin
end;
OnFindCumulatedCVEntriesBeforeInsertTempCVLedgerEntryForCumulatedInvoice(Record KVSADVAdvanceChain, Record Cust. Ledger Entry, Record CV Ledger Entry Buffer) :#
[IntegrationEvent(false, false)]
local procedure OnFindCumulatedCVEntriesBeforeInsertTempCVLedgerEntryForCumulatedInvoice(AdvanceChain: Record "KVSADVAdvanceChain"; CVLedgerEntry: Record "Cust. Ledger Entry"; var TempCVLedgerEntry: Record "CV Ledger Entry Buffer" temporary):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnFindCumulatedCVEntriesBeforeInsertTempCVLedgerEntryForCumulatedInvoice', '', false, false)]
local procedure DoSomethingOnFindCumulatedCVEntriesBeforeInsertTempCVLedgerEntryForCumulatedInvoice(AdvanceChain: Record "KVSADVAdvanceChain"; CVLedgerEntry: Record "Cust. Ledger Entry"; var TempCVLedgerEntry: Record "CV Ledger Entry Buffer" temporary)
begin
end;
OnBeforeCreateClosingInvoiceFromAdvancePlan(Record KVSADVAdvance Planning Entry, Record Sales Header, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateClosingInvoiceFromAdvancePlan(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeCreateClosingInvoiceFromAdvancePlan', '', false, false)]
local procedure DoSomethingOnBeforeCreateClosingInvoiceFromAdvancePlan(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
OnAfterTransferAdvPlanToDocumentHeader(Record Sales Header, Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry) :#
[IntegrationEvent(false, false)]
local procedure OnAfterTransferAdvPlanToDocumentHeader(var DocumentHeader: Record "Sales Header"; AdvanceChain: Record "KVSADVAdvanceChain"; AdvPlanLine: Record "KVSADVAdvance Planning Entry"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnAfterTransferAdvPlanToDocumentHeader', '', false, false)]
local procedure DoSomethingOnAfterTransferAdvPlanToDocumentHeader(var DocumentHeader: Record "Sales Header"; AdvanceChain: Record "KVSADVAdvanceChain"; AdvPlanLine: Record "KVSADVAdvance Planning Entry")
begin
end;
OnAfterTransferAdvPlanToDocumentHeaderAfterModify(Record Sales Header, Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry) :#
[IntegrationEvent(false, false)]
local procedure OnAfterTransferAdvPlanToDocumentHeaderAfterModify(var DocumentHeader: Record "Sales Header"; AdvanceChain: Record "KVSADVAdvanceChain"; AdvPlanLine: Record "KVSADVAdvance Planning Entry"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnAfterTransferAdvPlanToDocumentHeaderAfterModify', '', false, false)]
local procedure DoSomethingOnAfterTransferAdvPlanToDocumentHeaderAfterModify(var DocumentHeader: Record "Sales Header"; AdvanceChain: Record "KVSADVAdvanceChain"; AdvPlanLine: Record "KVSADVAdvance Planning Entry")
begin
end;
OnAfterTransferAdvancePlanToDocumentLine(Record Sales Header, Record Sales Line, Record KVSADVAdvance Planning Entry, Boolean, Integer) :#
[IntegrationEvent(false, false)]
local procedure OnAfterTransferAdvancePlanToDocumentLine(var DocumentHeader: Record "Sales Header"; var DocumentLine: Record "Sales Line"; AdvPlanLine: Record "KVSADVAdvance Planning Entry"; TotalLine: Boolean; CumulatedInvoiceEntryNo: Integer):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnAfterTransferAdvancePlanToDocumentLine', '', false, false)]
local procedure DoSomethingOnAfterTransferAdvancePlanToDocumentLine(var DocumentHeader: Record "Sales Header"; var DocumentLine: Record "Sales Line"; AdvPlanLine: Record "KVSADVAdvance Planning Entry"; TotalLine: Boolean; CumulatedInvoiceEntryNo: Integer)
begin
end;
OnAfterTransferAdvancePlanToDocumentLineAfterModify(Record Sales Header, Record Sales Line, Record KVSADVAdvance Planning Entry, Boolean, Integer) :#
[IntegrationEvent(false, false)]
local procedure OnAfterTransferAdvancePlanToDocumentLineAfterModify(var DocumentHeader: Record "Sales Header"; var DocumentLine: Record "Sales Line"; AdvPlanLine: Record "KVSADVAdvance Planning Entry"; TotalLine: Boolean; CumulatedInvoiceEntryNo: Integer):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnAfterTransferAdvancePlanToDocumentLineAfterModify', '', false, false)]
local procedure DoSomethingOnAfterTransferAdvancePlanToDocumentLineAfterModify(var DocumentHeader: Record "Sales Header"; var DocumentLine: Record "Sales Line"; AdvPlanLine: Record "KVSADVAdvance Planning Entry"; TotalLine: Boolean; CumulatedInvoiceEntryNo: Integer)
begin
end;
OnAfterTransferFiedldsFromAdvanceChainToAdvanceInvoiceOrCreditMemo(Record Sales Header, Record Sales Header, Record KVSADVAdvanceChain) :#
[IntegrationEvent(false, false)]
local procedure OnAfterTransferFiedldsFromAdvanceChainToAdvanceInvoiceOrCreditMemo(var DocumentHeader: Record "Sales Header"; xRecDocumentHeader: Record "Sales Header"; AdvanceChain: Record "KVSADVAdvanceChain"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnAfterTransferFiedldsFromAdvanceChainToAdvanceInvoiceOrCreditMemo', '', false, false)]
local procedure DoSomethingOnAfterTransferFiedldsFromAdvanceChainToAdvanceInvoiceOrCreditMemo(var DocumentHeader: Record "Sales Header"; xRecDocumentHeader: Record "Sales Header"; AdvanceChain: Record "KVSADVAdvanceChain")
begin
end;
OnBeforeGetCVEntriesForClosCreditMemo(Record Sales Header, Record Cust. Ledger Entry, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeGetCVEntriesForClosCreditMemo(var DocumentHeader: Record "Sales Header"; var TempCVEntriesForClosCreditMemo: Record "Cust. Ledger Entry" temporary; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeGetCVEntriesForClosCreditMemo', '', false, false)]
local procedure DoSomethingOnBeforeGetCVEntriesForClosCreditMemo(var DocumentHeader: Record "Sales Header"; var TempCVEntriesForClosCreditMemo: Record "Cust. Ledger Entry" temporary; var IsHandled: Boolean)
begin
end;
OnAfterSetFiltersForClosingCreditMemoCVLedgerEntries(Record Cust. Ledger Entry, Record Sales Header) :#
[IntegrationEvent(false, false)]
local procedure OnAfterSetFiltersForClosingCreditMemoCVLedgerEntries(var CVLedgerEntry: Record "Cust. Ledger Entry"; var DocumentHeader: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnAfterSetFiltersForClosingCreditMemoCVLedgerEntries', '', false, false)]
local procedure DoSomethingOnAfterSetFiltersForClosingCreditMemoCVLedgerEntries(var CVLedgerEntry: Record "Cust. Ledger Entry"; var DocumentHeader: Record "Sales Header")
begin
end;
OnAfterCalcClosingAmountForCVLedgerEntry(Record Sales Header, Record Cust. Ledger Entry, Decimal, Decimal, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnAfterCalcClosingAmountForCVLedgerEntry(var DocumentHeader: Record "Sales Header"; CVLedgerEntry: Record "Cust. Ledger Entry"; var ClosingAmount: Decimal; ClosAmountLimit: Decimal; InvalidCurrency: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnAfterCalcClosingAmountForCVLedgerEntry', '', false, false)]
local procedure DoSomethingOnAfterCalcClosingAmountForCVLedgerEntry(var DocumentHeader: Record "Sales Header"; CVLedgerEntry: Record "Cust. Ledger Entry"; var ClosingAmount: Decimal; ClosAmountLimit: Decimal; InvalidCurrency: Boolean)
begin
end;
OnBeforeSelectCreditMemoForDocumentApplication(Record Sales Header, Integer, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeSelectCreditMemoForDocumentApplication(var DocumentHeader: Record "Sales Header"; AutoApplicationOfCVLedgerEntryNo: Integer; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeSelectCreditMemoForDocumentApplication', '', false, false)]
local procedure DoSomethingOnBeforeSelectCreditMemoForDocumentApplication(var DocumentHeader: Record "Sales Header"; AutoApplicationOfCVLedgerEntryNo: Integer; var IsHandled: Boolean)
begin
end;
OnAfterSelectCreditMemoForDocumentApplication(Record Sales Header, Integer) :#
[IntegrationEvent(false, false)]
local procedure OnAfterSelectCreditMemoForDocumentApplication(var DocumentHeader: Record "Sales Header"; AutoApplicationOfCVLedgerEntryNo: Integer):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnAfterSelectCreditMemoForDocumentApplication', '', false, false)]
local procedure DoSomethingOnAfterSelectCreditMemoForDocumentApplication(var DocumentHeader: Record "Sales Header"; AutoApplicationOfCVLedgerEntryNo: Integer)
begin
end;
OnBeforeCreateDocumentLineFromCVEntry(Record Sales Header, Record Cust. Ledger Entry, Record Sales Invoice Line, Integer, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateDocumentLineFromCVEntry(DocumentHeader: Record "Sales Header"; CVLedgerEntry: Record "Cust. Ledger Entry"; PostedInvoiceLine: Record "Sales Invoice Line"; NextDocumentLineNo: Integer; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeCreateDocumentLineFromCVEntry', '', false, false)]
local procedure DoSomethingOnBeforeCreateDocumentLineFromCVEntry(DocumentHeader: Record "Sales Header"; CVLedgerEntry: Record "Cust. Ledger Entry"; PostedInvoiceLine: Record "Sales Invoice Line"; NextDocumentLineNo: Integer; var IsHandled: Boolean)
begin
end;
OnBeforeInsertAdvCreditMemoDocumentLineFromCVEntry(Record Sales Line, Record Sales Header, Record Cust. Ledger Entry, Record Sales Invoice Line) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertAdvCreditMemoDocumentLineFromCVEntry(var DocumentLine: Record "Sales Line"; DocumentHeader: Record "Sales Header"; CVLedgerEntry: Record "Cust. Ledger Entry"; PostedInvoiceLine: Record "Sales Invoice Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeInsertAdvCreditMemoDocumentLineFromCVEntry', '', false, false)]
local procedure DoSomethingOnBeforeInsertAdvCreditMemoDocumentLineFromCVEntry(var DocumentLine: Record "Sales Line"; DocumentHeader: Record "Sales Header"; CVLedgerEntry: Record "Cust. Ledger Entry"; PostedInvoiceLine: Record "Sales Invoice Line")
begin
end;
OnBeforeInsertAdvClosCreditMemoDocumentLineFromCVEntry(Record Sales Line, Record Sales Header, Record Cust. Ledger Entry, Record Sales Invoice Line) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertAdvClosCreditMemoDocumentLineFromCVEntry(var DocumentLine: Record "Sales Line"; DocumentHeader: Record "Sales Header"; CVLedgerEntry: Record "Cust. Ledger Entry"; PostedInvoiceLine: Record "Sales Invoice Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeInsertAdvClosCreditMemoDocumentLineFromCVEntry', '', false, false)]
local procedure DoSomethingOnBeforeInsertAdvClosCreditMemoDocumentLineFromCVEntry(var DocumentLine: Record "Sales Line"; DocumentHeader: Record "Sales Header"; CVLedgerEntry: Record "Cust. Ledger Entry"; PostedInvoiceLine: Record "Sales Invoice Line")
begin
end;
OnBeforeCalcAdvanceDocumentLineQuantity(Record Customer, Record Currency, Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry, Decimal, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcAdvanceDocumentLineQuantity(CVAccount: Record "Customer"; Currency: Record "Currency"; AdvanceChain: Record "KVSADVAdvanceChain"; AdvPlanLine: Record "KVSADVAdvance Planning Entry"; var Result: Decimal; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeCalcAdvanceDocumentLineQuantity', '', false, false)]
local procedure DoSomethingOnBeforeCalcAdvanceDocumentLineQuantity(CVAccount: Record "Customer"; Currency: Record "Currency"; AdvanceChain: Record "KVSADVAdvanceChain"; AdvPlanLine: Record "KVSADVAdvance Planning Entry"; var Result: Decimal; var IsHandled: Boolean)
begin
end;
OnBeforeFindCumulatedCVEntries(Record KVSADVAdvanceChain, Record CV Ledger Entry Buffer, Boolean, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeFindCumulatedCVEntries(AdvanceChain: Record "KVSADVAdvanceChain"; var TempCVLedgerEntryBuffer: Record "CV Ledger Entry Buffer" temporary; var IsHandled: Boolean; var EntriesFound: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeFindCumulatedCVEntries', '', false, false)]
local procedure DoSomethingOnBeforeFindCumulatedCVEntries(AdvanceChain: Record "KVSADVAdvanceChain"; var TempCVLedgerEntryBuffer: Record "CV Ledger Entry Buffer" temporary; var IsHandled: Boolean; var EntriesFound: Boolean)
begin
end;
OnBeforeTransferFieldsFromOrderToAdvanceDocument(Record KVSADVAdvanceChain, Record Sales Header, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeTransferFieldsFromOrderToAdvanceDocument(AdvanceChain: Record "KVSADVAdvanceChain"; var AdvanceDocHeader: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeTransferFieldsFromOrderToAdvanceDocument', '', false, false)]
local procedure DoSomethingOnBeforeTransferFieldsFromOrderToAdvanceDocument(AdvanceChain: Record "KVSADVAdvanceChain"; var AdvanceDocHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
OnAfterTransferFieldsFromOrderToAdvanceDocument(Record KVSADVAdvanceChain, Record Sales Header, Record Sales Header) :#
[IntegrationEvent(false, false)]
local procedure OnAfterTransferFieldsFromOrderToAdvanceDocument(AdvanceChain: Record "KVSADVAdvanceChain"; var AdvanceDocHeader: Record "Sales Header"; OrderHeader: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnAfterTransferFieldsFromOrderToAdvanceDocument', '', false, false)]
local procedure DoSomethingOnAfterTransferFieldsFromOrderToAdvanceDocument(AdvanceChain: Record "KVSADVAdvanceChain"; var AdvanceDocHeader: Record "Sales Header"; OrderHeader: Record "Sales Header")
begin
end;
OnAfterCreateAdvanceInvoicesFromAdvPlan(Record Customer, Record KVSADVAdvanceChain, Record Sales Header, Record KVSADVAdvance Planning Entry, Record Sales Header) :#
[IntegrationEvent(false, false)]
local procedure OnAfterCreateAdvanceInvoicesFromAdvPlan(CVAccount: Record "Customer"; AdvanceChain: Record "KVSADVAdvanceChain"; var CurrDocumentHeader: Record "Sales Header"; var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnAfterCreateAdvanceInvoicesFromAdvPlan', '', false, false)]
local procedure DoSomethingOnAfterCreateAdvanceInvoicesFromAdvPlan(CVAccount: Record "Customer"; AdvanceChain: Record "KVSADVAdvanceChain"; var CurrDocumentHeader: Record "Sales Header"; var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Sales Header")
begin
end;
OnAfterCreateClosingInvoicesFromAdvPlan(Record Customer, Record KVSADVAdvanceChain, Record Sales Header, Record KVSADVAdvance Planning Entry) :#
[IntegrationEvent(false, false)]
local procedure OnAfterCreateClosingInvoicesFromAdvPlan(CVAccount: Record "Customer"; AdvanceChain: Record "KVSADVAdvanceChain"; var CreatedDocumentHeader: Record "Sales Header"; var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnAfterCreateClosingInvoicesFromAdvPlan', '', false, false)]
local procedure DoSomethingOnAfterCreateClosingInvoicesFromAdvPlan(CVAccount: Record "Customer"; AdvanceChain: Record "KVSADVAdvanceChain"; var CreatedDocumentHeader: Record "Sales Header"; var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry")
begin
end;
OnAfterSetFilterOnPostedInvoiceLineInCreateCreditMemoLinesFromPostedInvoiceLines(Record Sales Invoice Line, Record Sales Header, Record Cust. Ledger Entry, Integer) :#
[IntegrationEvent(false, false)]
local procedure OnAfterSetFilterOnPostedInvoiceLineInCreateCreditMemoLinesFromPostedInvoiceLines(var PostedInvoiceLine: Record "Sales Invoice Line"; DocumentHeader: Record "Sales Header"; CVLedgerEntry: Record "Cust. Ledger Entry"; var NextDocumentLine: Integer):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnAfterSetFilterOnPostedInvoiceLineInCreateCreditMemoLinesFromPostedInvoiceLines', '', false, false)]
local procedure DoSomethingOnAfterSetFilterOnPostedInvoiceLineInCreateCreditMemoLinesFromPostedInvoiceLines(var PostedInvoiceLine: Record "Sales Invoice Line"; DocumentHeader: Record "Sales Header"; CVLedgerEntry: Record "Cust. Ledger Entry"; var NextDocumentLine: Integer)
begin
end;
OnBeforeCreateCreditMemoLineFromPostedInvoiceLine(Record Sales Invoice Line, Record Sales Header, Record Cust. Ledger Entry, Record Currency, Integer, Boolean, Record KVSADVAdvanceCalcDocLines, Decimal, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateCreditMemoLineFromPostedInvoiceLine(PostedInvoiceLine: Record "Sales Invoice Line"; var DocumentHeader: Record "Sales Header"; var CVLedgerEntry: Record "Cust. Ledger Entry"; var Currency: Record "Currency"; var NextDocumentLine: Integer; var IsHandled: Boolean; var AdvanceCalcDocLines: Record "KVSADVAdvanceCalcDocLines"; CreditMemoAmount: Decimal; CreditMemoAmountmustconsidered: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeCreateCreditMemoLineFromPostedInvoiceLine', '', false, false)]
local procedure DoSomethingOnBeforeCreateCreditMemoLineFromPostedInvoiceLine(PostedInvoiceLine: Record "Sales Invoice Line"; var DocumentHeader: Record "Sales Header"; var CVLedgerEntry: Record "Cust. Ledger Entry"; var Currency: Record "Currency"; var NextDocumentLine: Integer; var IsHandled: Boolean; var AdvanceCalcDocLines: Record "KVSADVAdvanceCalcDocLines"; CreditMemoAmount: Decimal; CreditMemoAmountmustconsidered: Boolean)
begin
end;
OnAfterDocumentLineCreatedInCreateDocumentLineFromCVEntry(Record Sales Line, Record Sales Invoice Line, Record Sales Header) :#
[IntegrationEvent(false, false)]
local procedure OnAfterDocumentLineCreatedInCreateDocumentLineFromCVEntry(var DocumentLine: Record "Sales Line"; PostedInvoiceLine: Record "Sales Invoice Line"; DocumentHeader: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnAfterDocumentLineCreatedInCreateDocumentLineFromCVEntry', '', false, false)]
local procedure DoSomethingOnAfterDocumentLineCreatedInCreateDocumentLineFromCVEntry(var DocumentLine: Record "Sales Line"; PostedInvoiceLine: Record "Sales Invoice Line"; DocumentHeader: Record "Sales Header")
begin
end;
OnCheckAdvancePlanningEntriesCanBeTransferredToInvoiceOnBeforeCheckAdvAmount(Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry, Boolean, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnCheckAdvancePlanningEntriesCanBeTransferredToInvoiceOnBeforeCheckAdvAmount(AdvanceChain: Record "KVSADVAdvanceChain"; var AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; ForClosingInvoice: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnCheckAdvancePlanningEntriesCanBeTransferredToInvoiceOnBeforeCheckAdvAmount', '', false, false)]
local procedure DoSomethingOnCheckAdvancePlanningEntriesCanBeTransferredToInvoiceOnBeforeCheckAdvAmount(AdvanceChain: Record "KVSADVAdvanceChain"; var AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; ForClosingInvoice: Boolean; var IsHandled: Boolean)
begin
end;
OnCreateAdvanceInvoicesFromAdvPlanOnBeforeCheckAdvPlanLineCumAdvAmount(Record KVSADVAdvance Planning Entry, Record Sales Header, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnCreateAdvanceInvoicesFromAdvPlanOnBeforeCheckAdvPlanLineCumAdvAmount(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnCreateAdvanceInvoicesFromAdvPlanOnBeforeCheckAdvPlanLineCumAdvAmount', '', false, false)]
local procedure DoSomethingOnCreateAdvanceInvoicesFromAdvPlanOnBeforeCheckAdvPlanLineCumAdvAmount(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
OnDocumentHeaderValidateAdvanceChainNoOnCaseAdvClosCreditMemoOnBeforeDocumentHeaderModify(Record Sales Header, Record Cust. Ledger Entry) :#
[IntegrationEvent(false, false)]
local procedure OnDocumentHeaderValidateAdvanceChainNoOnCaseAdvClosCreditMemoOnBeforeDocumentHeaderModify(var SalesHeader: Record "Sales Header"; TempCustLedgerEntry: Record "Cust. Ledger Entry" temporary):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnDocumentHeaderValidateAdvanceChainNoOnCaseAdvClosCreditMemoOnBeforeDocumentHeaderModify', '', false, false)]
local procedure DoSomethingOnDocumentHeaderValidateAdvanceChainNoOnCaseAdvClosCreditMemoOnBeforeDocumentHeaderModify(var SalesHeader: Record "Sales Header"; TempCustLedgerEntry: Record "Cust. Ledger Entry" temporary)
begin
end;
OnSelectCreditMemoForDocumentApplicationOnAssignPostedInvoiceHeaderValues(Record Sales Header, Record Sales Invoice Header) :#
[IntegrationEvent(false, false)]
local procedure OnSelectCreditMemoForDocumentApplicationOnAssignPostedInvoiceHeaderValues(var SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnSelectCreditMemoForDocumentApplicationOnAssignPostedInvoiceHeaderValues', '', false, false)]
local procedure DoSomethingOnSelectCreditMemoForDocumentApplicationOnAssignPostedInvoiceHeaderValues(var SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header")
begin
end;
OnBeforeGetResponsibilityCenter(Record Sales Header, Record KVSADVAdvance Planning Entry, Record KVSADVAdvanceChain, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeGetResponsibilityCenter(var SalesHeader: Record "Sales Header"; KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; KVSADVAdvanceChain: Record "KVSADVAdvanceChain"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeGetResponsibilityCenter', '', false, false)]
local procedure DoSomethingOnBeforeGetResponsibilityCenter(var SalesHeader: Record "Sales Header"; KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; KVSADVAdvanceChain: Record "KVSADVAdvanceChain"; var IsHandled: Boolean)
begin
end;
OnBeforeSearchSecurityDepositInvoiceNos(Code[20], Text, Integer, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeSearchSecurityDepositInvoiceNos(OriginalInvoiceNo: Code[20]; var InvoiceNoText: Text; var InvoiceQty: Integer; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeSearchSecurityDepositInvoiceNos', '', false, false)]
local procedure DoSomethingOnBeforeSearchSecurityDepositInvoiceNos(OriginalInvoiceNo: Code[20]; var InvoiceNoText: Text; var InvoiceQty: Integer; var IsHandled: Boolean)
begin
end;
OnBeforeApplyDiffAmountToSalesLine(Record Sales Line, Record Sales Header, Decimal) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeApplyDiffAmountToSalesLine(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; DiffAmount: Decimal):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnBeforeApplyDiffAmountToSalesLine', '', false, false)]
local procedure DoSomethingOnBeforeApplyDiffAmountToSalesLine(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; DiffAmount: Decimal)
begin
end;
OnCreateCreditMemoLineFromPostedInvoiceLineOnBeforeCreateDocumentLineFromCVEntry(Record Sales Invoice Line, Record Sales Header, Record Cust. Ledger Entry, Record Currency, Record KVSADVAdvanceCalcDocLines, Decimal, Boolean, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnCreateCreditMemoLineFromPostedInvoiceLineOnBeforeCreateDocumentLineFromCVEntry(SalesInvoiceLine: Record "Sales Invoice Line"; SalesHeader: Record "Sales Header"; CustLedgerEntry: Record "Cust. Ledger Entry"; Currency: Record "Currency"; var AdvanceCalcDocLines: Record "KVSADVAdvanceCalcDocLines"; CreditMemoAmount: Decimal; CreditMemoAmountMustConsidered: Boolean; var TransferLine: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationSales", 'OnCreateCreditMemoLineFromPostedInvoiceLineOnBeforeCreateDocumentLineFromCVEntry', '', false, false)]
local procedure DoSomethingOnCreateCreditMemoLineFromPostedInvoiceLineOnBeforeCreateDocumentLineFromCVEntry(SalesInvoiceLine: Record "Sales Invoice Line"; SalesHeader: Record "Sales Header"; CustLedgerEntry: Record "Cust. Ledger Entry"; Currency: Record "Currency"; var AdvanceCalcDocLines: Record "KVSADVAdvanceCalcDocLines"; CreditMemoAmount: Decimal; CreditMemoAmountMustConsidered: Boolean; var TransferLine: Boolean)
begin
end;