KVSADVAdvanceDocCreationPurch#
Procedures#
CreateAdvanceInvoicesFromAdvPlan(Record KVSADVAdvance Planning Entry, Record Purchase Header) :#
procedure CreateAdvanceInvoicesFromAdvPlan(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Purchase Header"):
CreateClosingInvoiceFromAdvancePlan(Record KVSADVAdvance Planning Entry, Record Purchase Header) :#
procedure CreateClosingInvoiceFromAdvancePlan(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Purchase Header"):
ShowInvoicesAfterCreatedFromAdvPlanningEntries(Record Purchase Header) :#
procedure ShowInvoicesAfterCreatedFromAdvPlanningEntries(var CreatedAdvanceDocs: Record "Purchase Header"):
GetCVEntriesForClosCreditMemo(Record Purchase Header, Record Vendor Ledger Entry) :#
procedure GetCVEntriesForClosCreditMemo(var DocumentHeader: Record "Purchase Header"; var TempCVEntriesForClosCreditMemo: Record "Vendor Ledger Entry" temporary):
CreateDocumentLineFromCVEntry(Record Purchase Header, Record Vendor Ledger Entry, Record Purch. Inv. Line, Integer) :#
Summary: The function creates credit memo lines from the data of one of the invoice lines and the corresponding vendor entry
procedure CreateDocumentLineFromCVEntry(DocumentHeader: Record "Purchase Header"; CVLedgerEntry: Record "Vendor Ledger Entry"; PostedInvoiceLine: Record "Purch. Inv. Line"; NextDocumentLineNo: Integer):
Parameters:
DocumentHeader
: New Document Header as Recored Purchase HeaderCVLedgerEntry
: The vendor legder entry that is creditedPostedInvoiceLine
: The old posted invoice line that is creditedNextDocumentLineNo
: The new line number to be used as Integer
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::"KVSADVAdvanceDocCreationPurch", '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 Purchase Header, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateAdvanceInvoicesFromAdvPlan(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Purchase Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeCreateAdvanceInvoicesFromAdvPlan', '', false, false)]
local procedure DoSomethingOnBeforeCreateAdvanceInvoicesFromAdvPlan(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Purchase Header"; var IsHandled: Boolean)
begin
end;
OnBeforeUseExistingHeaderForAdvanceInvoiceCreation(Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry, Record Purchase Header, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeUseExistingHeaderForAdvanceInvoiceCreation(AdvanceChain: Record "KVSADVAdvanceChain"; var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CurrDocumentHeader: Record "Purchase Header"; var CreateDocumentHeader: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeUseExistingHeaderForAdvanceInvoiceCreation', '', false, false)]
local procedure DoSomethingOnBeforeUseExistingHeaderForAdvanceInvoiceCreation(AdvanceChain: Record "KVSADVAdvanceChain"; var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CurrDocumentHeader: Record "Purchase Header"; var CreateDocumentHeader: Boolean)
begin
end;
OnBeforeIsDocumentHeaderUseableForAdvPlanEntry(Record Purchase Header, Record KVSADVAdvance Planning Entry, Boolean, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeIsDocumentHeaderUseableForAdvPlanEntry(DocumentHeader: Record "Purchase Header"; AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var IsUsable: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeIsDocumentHeaderUseableForAdvPlanEntry', '', false, false)]
local procedure DoSomethingOnBeforeIsDocumentHeaderUseableForAdvPlanEntry(DocumentHeader: Record "Purchase Header"; AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var IsUsable: Boolean; var IsHandled: Boolean)
begin
end;
OnAfterSetFiltersForCumulatedCVLedgerEntriesV21(Record Vendor Ledger Entry, Record KVSADVAdvanceChain) :#
[IntegrationEvent(false, false)]
local procedure OnAfterSetFiltersForCumulatedCVLedgerEntriesV21(var CVLedgerEntry: Record "Vendor Ledger Entry"; AdvanceChain: Record "KVSADVAdvanceChain"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnAfterSetFiltersForCumulatedCVLedgerEntriesV21', '', false, false)]
local procedure DoSomethingOnAfterSetFiltersForCumulatedCVLedgerEntriesV21(var CVLedgerEntry: Record "Vendor Ledger Entry"; AdvanceChain: Record "KVSADVAdvanceChain")
begin
end;
OnFindCumulatedCVEntriesBeforeInsertTempCVLedgerEntryForCumulatedInvoice(Record KVSADVAdvanceChain, Record Vendor Ledger Entry, Record CV Ledger Entry Buffer) :#
[IntegrationEvent(false, false)]
local procedure OnFindCumulatedCVEntriesBeforeInsertTempCVLedgerEntryForCumulatedInvoice(AdvanceChain: Record "KVSADVAdvanceChain"; CVLedgerEntry: Record "Vendor Ledger Entry"; var TempCVLedgerEntry: Record "CV Ledger Entry Buffer" temporary):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnFindCumulatedCVEntriesBeforeInsertTempCVLedgerEntryForCumulatedInvoice', '', false, false)]
local procedure DoSomethingOnFindCumulatedCVEntriesBeforeInsertTempCVLedgerEntryForCumulatedInvoice(AdvanceChain: Record "KVSADVAdvanceChain"; CVLedgerEntry: Record "Vendor Ledger Entry"; var TempCVLedgerEntry: Record "CV Ledger Entry Buffer" temporary)
begin
end;
OnBeforeCreateClosingInvoiceFromAdvancePlan(Record KVSADVAdvance Planning Entry, Record Purchase Header, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateClosingInvoiceFromAdvancePlan(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Purchase Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeCreateClosingInvoiceFromAdvancePlan', '', false, false)]
local procedure DoSomethingOnBeforeCreateClosingInvoiceFromAdvancePlan(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Purchase Header"; var IsHandled: Boolean)
begin
end;
OnAfterTransferAdvPlanToDocumentHeader(Record Purchase Header, Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry) :#
[IntegrationEvent(false, false)]
local procedure OnAfterTransferAdvPlanToDocumentHeader(var DocumentHeader: Record "Purchase Header"; AdvanceChain: Record "KVSADVAdvanceChain"; AdvPlanLine: Record "KVSADVAdvance Planning Entry"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnAfterTransferAdvPlanToDocumentHeader', '', false, false)]
local procedure DoSomethingOnAfterTransferAdvPlanToDocumentHeader(var DocumentHeader: Record "Purchase Header"; AdvanceChain: Record "KVSADVAdvanceChain"; AdvPlanLine: Record "KVSADVAdvance Planning Entry")
begin
end;
OnAfterTransferAdvPlanToDocumentHeaderAfterModify(Record Purchase Header, Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry) :#
[IntegrationEvent(false, false)]
local procedure OnAfterTransferAdvPlanToDocumentHeaderAfterModify(var DocumentHeader: Record "Purchase Header"; AdvanceChain: Record "KVSADVAdvanceChain"; AdvPlanLine: Record "KVSADVAdvance Planning Entry"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnAfterTransferAdvPlanToDocumentHeaderAfterModify', '', false, false)]
local procedure DoSomethingOnAfterTransferAdvPlanToDocumentHeaderAfterModify(var DocumentHeader: Record "Purchase Header"; AdvanceChain: Record "KVSADVAdvanceChain"; AdvPlanLine: Record "KVSADVAdvance Planning Entry")
begin
end;
OnAfterTransferAdvPlanToDocumentLine(Record Purchase Header, Record Purchase Line, Record KVSADVAdvance Planning Entry, Boolean, Integer) :#
[IntegrationEvent(false, false)]
local procedure OnAfterTransferAdvPlanToDocumentLine(DocumentHeader: Record "Purchase Header"; var DocumentLine: Record "Purchase Line"; AdvPlanLine: Record "KVSADVAdvance Planning Entry"; TotalLine: Boolean; CumulatedInvoiceEntryNo: Integer):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnAfterTransferAdvPlanToDocumentLine', '', false, false)]
local procedure DoSomethingOnAfterTransferAdvPlanToDocumentLine(DocumentHeader: Record "Purchase Header"; var DocumentLine: Record "Purchase Line"; AdvPlanLine: Record "KVSADVAdvance Planning Entry"; TotalLine: Boolean; CumulatedInvoiceEntryNo: Integer)
begin
end;
OnAfterTransferAdvPlanToDocumentLineAfterModify(Record Purchase Header, Record Purchase Line, Record KVSADVAdvance Planning Entry, Boolean, Integer) :#
[IntegrationEvent(false, false)]
local procedure OnAfterTransferAdvPlanToDocumentLineAfterModify(DocumentHeader: Record "Purchase Header"; var DocumentLine: Record "Purchase Line"; AdvPlanLine: Record "KVSADVAdvance Planning Entry"; TotalLine: Boolean; CumulatedInvoiceEntryNo: Integer):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnAfterTransferAdvPlanToDocumentLineAfterModify', '', false, false)]
local procedure DoSomethingOnAfterTransferAdvPlanToDocumentLineAfterModify(DocumentHeader: Record "Purchase Header"; var DocumentLine: Record "Purchase Line"; AdvPlanLine: Record "KVSADVAdvance Planning Entry"; TotalLine: Boolean; CumulatedInvoiceEntryNo: Integer)
begin
end;
OnAfterTransferFiedldsFromAdvanceChainToAdvanceInvoiceOrCreditMemo(Record Purchase Header, Record Purchase Header, Record KVSADVAdvanceChain) :#
[IntegrationEvent(false, false)]
local procedure OnAfterTransferFiedldsFromAdvanceChainToAdvanceInvoiceOrCreditMemo(var DocumentHeader: Record "Purchase Header"; xRecDocumentHeader: Record "Purchase Header"; AdvanceChain: Record "KVSADVAdvanceChain"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnAfterTransferFiedldsFromAdvanceChainToAdvanceInvoiceOrCreditMemo', '', false, false)]
local procedure DoSomethingOnAfterTransferFiedldsFromAdvanceChainToAdvanceInvoiceOrCreditMemo(var DocumentHeader: Record "Purchase Header"; xRecDocumentHeader: Record "Purchase Header"; AdvanceChain: Record "KVSADVAdvanceChain")
begin
end;
OnBeforeGetCVEntriesForClosCreditMemo(Record Purchase Header, Record Vendor Ledger Entry, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeGetCVEntriesForClosCreditMemo(var DocumentHeader: Record "Purchase Header"; var TempCVEntriesForClosCreditMemo: Record "Vendor Ledger Entry" temporary; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeGetCVEntriesForClosCreditMemo', '', false, false)]
local procedure DoSomethingOnBeforeGetCVEntriesForClosCreditMemo(var DocumentHeader: Record "Purchase Header"; var TempCVEntriesForClosCreditMemo: Record "Vendor Ledger Entry" temporary; var IsHandled: Boolean)
begin
end;
OnAfterSetFiltersForClosingCreditMemoCVLedgerEntries(Record Vendor Ledger Entry, Record Purchase Header) :#
[IntegrationEvent(false, false)]
local procedure OnAfterSetFiltersForClosingCreditMemoCVLedgerEntries(var CVLedgerEntry: Record "Vendor Ledger Entry"; var DocumentHeader: Record "Purchase Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnAfterSetFiltersForClosingCreditMemoCVLedgerEntries', '', false, false)]
local procedure DoSomethingOnAfterSetFiltersForClosingCreditMemoCVLedgerEntries(var CVLedgerEntry: Record "Vendor Ledger Entry"; var DocumentHeader: Record "Purchase Header")
begin
end;
OnAfterCalcClosingAmountForCVLedgerEntry(Record Purchase Header, Record Vendor Ledger Entry, Decimal, Decimal, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnAfterCalcClosingAmountForCVLedgerEntry(var DocumentHeader: Record "Purchase Header"; CVLedgerEntry: Record "Vendor Ledger Entry"; var ClosingAmount: Decimal; ClosAmountLimit: Decimal; InvalidCurrency: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnAfterCalcClosingAmountForCVLedgerEntry', '', false, false)]
local procedure DoSomethingOnAfterCalcClosingAmountForCVLedgerEntry(var DocumentHeader: Record "Purchase Header"; CVLedgerEntry: Record "Vendor Ledger Entry"; var ClosingAmount: Decimal; ClosAmountLimit: Decimal; InvalidCurrency: Boolean)
begin
end;
OnBeforeSelectCreditMemoForDocumentApplication(Record Purchase Header, Integer, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeSelectCreditMemoForDocumentApplication(var DocumentHeader: Record "Purchase Header"; AutoApplicationOfCVLedgerEntryNo: Integer; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeSelectCreditMemoForDocumentApplication', '', false, false)]
local procedure DoSomethingOnBeforeSelectCreditMemoForDocumentApplication(var DocumentHeader: Record "Purchase Header"; AutoApplicationOfCVLedgerEntryNo: Integer; var IsHandled: Boolean)
begin
end;
OnAfterSelectCreditMemoForDocumentApplication(Record Purchase Header, Integer) :#
[IntegrationEvent(false, false)]
local procedure OnAfterSelectCreditMemoForDocumentApplication(var DocumentHeader: Record "Purchase Header"; AutoApplicationOfCVLedgerEntryNo: Integer):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnAfterSelectCreditMemoForDocumentApplication', '', false, false)]
local procedure DoSomethingOnAfterSelectCreditMemoForDocumentApplication(var DocumentHeader: Record "Purchase Header"; AutoApplicationOfCVLedgerEntryNo: Integer)
begin
end;
OnBeforeCreateDocumentLineFromCVEntry(Record Purchase Header, Record Vendor Ledger Entry, Record Purch. Inv. Line, Integer, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateDocumentLineFromCVEntry(DocumentHeader: Record "Purchase Header"; CVLedgerEntry: Record "Vendor Ledger Entry"; PostedInvoiceLine: Record "Purch. Inv. Line"; NextDocumentLineNo: Integer; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeCreateDocumentLineFromCVEntry', '', false, false)]
local procedure DoSomethingOnBeforeCreateDocumentLineFromCVEntry(DocumentHeader: Record "Purchase Header"; CVLedgerEntry: Record "Vendor Ledger Entry"; PostedInvoiceLine: Record "Purch. Inv. Line"; NextDocumentLineNo: Integer; var IsHandled: Boolean)
begin
end;
OnBeforeInsertAdvCreditMemoDocumentLineFromCVEntry(Record Purchase Line, Record Purchase Header, Record Vendor Ledger Entry, Record Purch. Inv. Line) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertAdvCreditMemoDocumentLineFromCVEntry(var DocumentLine: Record "Purchase Line"; DocumentHeader: Record "Purchase Header"; CVLedgerEntry: Record "Vendor Ledger Entry"; PostedInvoiceLine: Record "Purch. Inv. Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeInsertAdvCreditMemoDocumentLineFromCVEntry', '', false, false)]
local procedure DoSomethingOnBeforeInsertAdvCreditMemoDocumentLineFromCVEntry(var DocumentLine: Record "Purchase Line"; DocumentHeader: Record "Purchase Header"; CVLedgerEntry: Record "Vendor Ledger Entry"; PostedInvoiceLine: Record "Purch. Inv. Line")
begin
end;
OnBeforeInsertAdvClosCreditMemoDocumentLineFromCVEntry(Record Purchase Line, Record Purchase Header, Record Vendor Ledger Entry, Record Purch. Inv. Line) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertAdvClosCreditMemoDocumentLineFromCVEntry(var DocumentLine: Record "Purchase Line"; DocumentHeader: Record "Purchase Header"; CVLedgerEntry: Record "Vendor Ledger Entry"; PostedInvoiceLine: Record "Purch. Inv. Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeInsertAdvClosCreditMemoDocumentLineFromCVEntry', '', false, false)]
local procedure DoSomethingOnBeforeInsertAdvClosCreditMemoDocumentLineFromCVEntry(var DocumentLine: Record "Purchase Line"; DocumentHeader: Record "Purchase Header"; CVLedgerEntry: Record "Vendor Ledger Entry"; PostedInvoiceLine: Record "Purch. Inv. Line")
begin
end;
OnBeforeCalcAdvanceDocumentLineQuantity(Record Vendor, Record Currency, Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry, Decimal, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcAdvanceDocumentLineQuantity(CVAccount: Record "Vendor"; Currency: Record "Currency"; AdvanceChain: Record "KVSADVAdvanceChain"; AdvPlanLine: Record "KVSADVAdvance Planning Entry"; var Result: Decimal; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeCalcAdvanceDocumentLineQuantity', '', false, false)]
local procedure DoSomethingOnBeforeCalcAdvanceDocumentLineQuantity(CVAccount: Record "Vendor"; 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::"KVSADVAdvanceDocCreationPurch", '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 Purchase Header, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeTransferFieldsFromOrderToAdvanceDocument(AdvanceChain: Record "KVSADVAdvanceChain"; var AdvanceDocHeader: Record "Purchase Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeTransferFieldsFromOrderToAdvanceDocument', '', false, false)]
local procedure DoSomethingOnBeforeTransferFieldsFromOrderToAdvanceDocument(AdvanceChain: Record "KVSADVAdvanceChain"; var AdvanceDocHeader: Record "Purchase Header"; var IsHandled: Boolean)
begin
end;
OnAfterTransferFieldsFromOrderToAdvanceDocument(Record KVSADVAdvanceChain, Record Purchase Header, Record Purchase Header) :#
[IntegrationEvent(false, false)]
local procedure OnAfterTransferFieldsFromOrderToAdvanceDocument(AdvanceChain: Record "KVSADVAdvanceChain"; var AdvanceDocHeader: Record "Purchase Header"; OrderHeader: Record "Purchase Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnAfterTransferFieldsFromOrderToAdvanceDocument', '', false, false)]
local procedure DoSomethingOnAfterTransferFieldsFromOrderToAdvanceDocument(AdvanceChain: Record "KVSADVAdvanceChain"; var AdvanceDocHeader: Record "Purchase Header"; OrderHeader: Record "Purchase Header")
begin
end;
OnAfterCreateAdvanceInvoicesFromAdvPlan(Record Vendor, Record KVSADVAdvanceChain, Record Purchase Header, Record KVSADVAdvance Planning Entry, Record Purchase Header) :#
[IntegrationEvent(false, false)]
local procedure OnAfterCreateAdvanceInvoicesFromAdvPlan(CVAccount: Record "Vendor"; AdvanceChain: Record "KVSADVAdvanceChain"; var CurrDocumentHeader: Record "Purchase Header"; var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Purchase Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnAfterCreateAdvanceInvoicesFromAdvPlan', '', false, false)]
local procedure DoSomethingOnAfterCreateAdvanceInvoicesFromAdvPlan(CVAccount: Record "Vendor"; AdvanceChain: Record "KVSADVAdvanceChain"; var CurrDocumentHeader: Record "Purchase Header"; var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Purchase Header")
begin
end;
OnAfterCreateClosingInvoicesFromAdvPlan(Record Vendor, Record KVSADVAdvanceChain, Record Purchase Header, Record KVSADVAdvance Planning Entry) :#
[IntegrationEvent(false, false)]
local procedure OnAfterCreateClosingInvoicesFromAdvPlan(CVAccount: Record "Vendor"; AdvanceChain: Record "KVSADVAdvanceChain"; var CreatedDocumentHeader: Record "Purchase Header"; var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnAfterCreateClosingInvoicesFromAdvPlan', '', false, false)]
local procedure DoSomethingOnAfterCreateClosingInvoicesFromAdvPlan(CVAccount: Record "Vendor"; AdvanceChain: Record "KVSADVAdvanceChain"; var CreatedDocumentHeader: Record "Purchase Header"; var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry")
begin
end;
OnAfterSetFilterOnPostedInvoiceLineInCreateCreditMemoLinesFromPostedInvoiceLines(Record Purch. Inv. Line, Record Purchase Header, Record Vendor Ledger Entry, Integer) :#
[IntegrationEvent(false, false)]
local procedure OnAfterSetFilterOnPostedInvoiceLineInCreateCreditMemoLinesFromPostedInvoiceLines(var PostedInvoiceLine: Record "Purch. Inv. Line"; DocumentHeader: Record "Purchase Header"; CVLedgerEntry: Record "Vendor Ledger Entry"; var NextDocumentLine: Integer):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnAfterSetFilterOnPostedInvoiceLineInCreateCreditMemoLinesFromPostedInvoiceLines', '', false, false)]
local procedure DoSomethingOnAfterSetFilterOnPostedInvoiceLineInCreateCreditMemoLinesFromPostedInvoiceLines(var PostedInvoiceLine: Record "Purch. Inv. Line"; DocumentHeader: Record "Purchase Header"; CVLedgerEntry: Record "Vendor Ledger Entry"; var NextDocumentLine: Integer)
begin
end;
OnBeforeCreateCreditMemoLineFromPostedInvoiceLine(Record Purch. Inv. Line, Record Purchase Header, Record Vendor Ledger Entry, Record Currency, Integer, Boolean, Decimal, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateCreditMemoLineFromPostedInvoiceLine(PostedInvoiceLine: Record "Purch. Inv. Line"; var DocumentHeader: Record "Purchase Header"; var CVLedgerEntry: Record "Vendor Ledger Entry"; var Currency: Record "Currency"; var NextDocumentLine: Integer; var IsHandled: Boolean; CreditMemoAmount: Decimal; CreditMemoAmountmustconsidered: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeCreateCreditMemoLineFromPostedInvoiceLine', '', false, false)]
local procedure DoSomethingOnBeforeCreateCreditMemoLineFromPostedInvoiceLine(PostedInvoiceLine: Record "Purch. Inv. Line"; var DocumentHeader: Record "Purchase Header"; var CVLedgerEntry: Record "Vendor Ledger Entry"; var Currency: Record "Currency"; var NextDocumentLine: Integer; var IsHandled: Boolean; CreditMemoAmount: Decimal; CreditMemoAmountmustconsidered: Boolean)
begin
end;
OnAfterDocumentLineCreatedInCreateDocumentLineFromCVEntry(Record Purchase Line, Record Purch. Inv. Line, Record Purchase Header) :#
[IntegrationEvent(false, false)]
local procedure OnAfterDocumentLineCreatedInCreateDocumentLineFromCVEntry(var DocumentLine: Record "Purchase Line"; PostedInvoiceLine: Record "Purch. Inv. Line"; DocumentHeader: Record "Purchase Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnAfterDocumentLineCreatedInCreateDocumentLineFromCVEntry', '', false, false)]
local procedure DoSomethingOnAfterDocumentLineCreatedInCreateDocumentLineFromCVEntry(var DocumentLine: Record "Purchase Line"; PostedInvoiceLine: Record "Purch. Inv. Line"; DocumentHeader: Record "Purchase 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::"KVSADVAdvanceDocCreationPurch", '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 Purchase Header, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnCreateAdvanceInvoicesFromAdvPlanOnBeforeCheckAdvPlanLineCumAdvAmount(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Purchase Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnCreateAdvanceInvoicesFromAdvPlanOnBeforeCheckAdvPlanLineCumAdvAmount', '', false, false)]
local procedure DoSomethingOnCreateAdvanceInvoicesFromAdvPlanOnBeforeCheckAdvPlanLineCumAdvAmount(var SelectedAdvPlanLine: Record "KVSADVAdvance Planning Entry"; var CreatedDocumentHeader: Record "Purchase Header"; var IsHandled: Boolean)
begin
end;
OnBeforeGetNonDeductibleVATPercent(Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry, Decimal, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeGetNonDeductibleVATPercent(var AdvanceChain: Record "KVSADVAdvanceChain"; var AdvPlanLine: Record "KVSADVAdvance Planning Entry"; var NonDeductibleVATPercent: Decimal; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeGetNonDeductibleVATPercent', '', false, false)]
local procedure DoSomethingOnBeforeGetNonDeductibleVATPercent(var AdvanceChain: Record "KVSADVAdvanceChain"; var AdvPlanLine: Record "KVSADVAdvance Planning Entry"; var NonDeductibleVATPercent: Decimal; var IsHandled: Boolean)
begin
end;
OnBeforeReduceNonDedVatPercent(Record Purchase Line, Decimal, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeReduceNonDedVatPercent(var PurchaseLine: Record "Purchase Line"; ReduceAmount: Decimal; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeReduceNonDedVatPercent', '', false, false)]
local procedure DoSomethingOnBeforeReduceNonDedVatPercent(var PurchaseLine: Record "Purchase Line"; ReduceAmount: Decimal; var IsHandled: Boolean)
begin
end;
OnBeforeChangeNonDedVatPercentLineatVATDifferences(Record Purchase Line, Decimal, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeChangeNonDedVatPercentLineatVATDifferences(var PurchaseLine: Record "Purchase Line"; OldNonDeductibleVATAmount: Decimal; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeChangeNonDedVatPercentLineatVATDifferences', '', false, false)]
local procedure DoSomethingOnBeforeChangeNonDedVatPercentLineatVATDifferences(var PurchaseLine: Record "Purchase Line"; OldNonDeductibleVATAmount: Decimal; var IsHandled: Boolean)
begin
end;
OnBeforeOnReleasePurchaseDocumentOnCodeOnAfterCheck(Record Purchase Header, Record Purchase Line, Boolean, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeOnReleasePurchaseDocumentOnCodeOnAfterCheck(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var LinesWereModified: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeOnReleasePurchaseDocumentOnCodeOnAfterCheck', '', false, false)]
local procedure DoSomethingOnBeforeOnReleasePurchaseDocumentOnCodeOnAfterCheck(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var LinesWereModified: Boolean; var IsHandled: Boolean)
begin
end;
OnTransferAdvPlanToDocumentLineOnBeforeTransferNonDeductibleVATPercent(Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry, Record Purchase Line, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnTransferAdvPlanToDocumentLineOnBeforeTransferNonDeductibleVATPercent(KVSADVAdvanceChain: Record "KVSADVAdvanceChain"; KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnTransferAdvPlanToDocumentLineOnBeforeTransferNonDeductibleVATPercent', '', false, false)]
local procedure DoSomethingOnTransferAdvPlanToDocumentLineOnBeforeTransferNonDeductibleVATPercent(KVSADVAdvanceChain: Record "KVSADVAdvanceChain"; KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
begin
end;
OnBeforeOnPurchaseLineOnAfterValidateEvent(Record Purchase Line, Record Purchase Line, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeOnPurchaseLineOnAfterValidateEvent(Rec: Record "Purchase Line"; xRec: Record "Purchase Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeOnPurchaseLineOnAfterValidateEvent', '', false, false)]
local procedure DoSomethingOnBeforeOnPurchaseLineOnAfterValidateEvent(Rec: Record "Purchase Line"; xRec: Record "Purchase Line"; var IsHandled: Boolean)
begin
end;
OnDocumentHeaderValidateAdvanceChainNoOnCaseAdvClosCreditMemoOnBeforeDocumentHeaderModify(Record Purchase Header, Record Vendor Ledger Entry) :#
[IntegrationEvent(false, false)]
local procedure OnDocumentHeaderValidateAdvanceChainNoOnCaseAdvClosCreditMemoOnBeforeDocumentHeaderModify(var PurchaseHeader: Record "Purchase Header"; TempVendorLedgerEntry: Record "Vendor Ledger Entry" temporary):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnDocumentHeaderValidateAdvanceChainNoOnCaseAdvClosCreditMemoOnBeforeDocumentHeaderModify', '', false, false)]
local procedure DoSomethingOnDocumentHeaderValidateAdvanceChainNoOnCaseAdvClosCreditMemoOnBeforeDocumentHeaderModify(var PurchaseHeader: Record "Purchase Header"; TempVendorLedgerEntry: Record "Vendor Ledger Entry" temporary)
begin
end;
OnSelectCreditMemoForDocumentApplicationOnAssignPostedInvoiceHeaderValues(Record Purchase Header, Record Purch. Inv. Header) :#
[IntegrationEvent(false, false)]
local procedure OnSelectCreditMemoForDocumentApplicationOnAssignPostedInvoiceHeaderValues(var PurchaseHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnSelectCreditMemoForDocumentApplicationOnAssignPostedInvoiceHeaderValues', '', false, false)]
local procedure DoSomethingOnSelectCreditMemoForDocumentApplicationOnAssignPostedInvoiceHeaderValues(var PurchaseHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header")
begin
end;
OnBeforeGetResponsibilityCenter(Record Purchase Header, Record KVSADVAdvance Planning Entry, Record KVSADVAdvanceChain, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeGetResponsibilityCenter(var PurchaseHeader: Record "Purchase Header"; KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; KVSADVAdvanceChain: Record "KVSADVAdvanceChain"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeGetResponsibilityCenter', '', false, false)]
local procedure DoSomethingOnBeforeGetResponsibilityCenter(var PurchaseHeader: Record "Purchase Header"; KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; KVSADVAdvanceChain: Record "KVSADVAdvanceChain"; var IsHandled: Boolean)
begin
end;
OnAddCVLedgerEntryToClosCreditMemoLinesOnElseAmountZero(Record Purchase Header, Record Vendor Ledger Entry, Record Purch. Inv. Line, Integer, Decimal) :#
[IntegrationEvent(false, false)]
local procedure OnAddCVLedgerEntryToClosCreditMemoLinesOnElseAmountZero(PurchaseHeader: Record "Purchase Header"; VendorLedgerEntry: Record "Vendor Ledger Entry"; PurchInvLine: Record "Purch. Inv. Line"; var NextLineNo: Integer; var DistributedAmount: Decimal):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnAddCVLedgerEntryToClosCreditMemoLinesOnElseAmountZero', '', false, false)]
local procedure DoSomethingOnAddCVLedgerEntryToClosCreditMemoLinesOnElseAmountZero(PurchaseHeader: Record "Purchase Header"; VendorLedgerEntry: Record "Vendor Ledger Entry"; PurchInvLine: Record "Purch. Inv. Line"; var NextLineNo: Integer; var DistributedAmount: Decimal)
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::"KVSADVAdvanceDocCreationPurch", 'OnBeforeSearchSecurityDepositInvoiceNos', '', false, false)]
local procedure DoSomethingOnBeforeSearchSecurityDepositInvoiceNos(OriginalInvoiceNo: Code[20]; var InvoiceNoText: Text; var InvoiceQty: Integer; var IsHandled: Boolean)
begin
end;
OnBeforeApplyDiffAmountToPurchaseLine(Record Purchase Line, Record Purchase Header, Decimal) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeApplyDiffAmountToPurchaseLine(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; DiffAmount: Decimal):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnBeforeApplyDiffAmountToPurchaseLine', '', false, false)]
local procedure DoSomethingOnBeforeApplyDiffAmountToPurchaseLine(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; DiffAmount: Decimal)
begin
end;
OnCreateCreditMemoLineFromPostedInvoiceLineOnBeforeCreateDocumentLineFromCVEntry(Record Purch. Inv. Line, Record Purchase Header, Record Vendor Ledger Entry, Record Currency, Record KVSADVAdvanceCalcDocLines, Decimal, Boolean, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnCreateCreditMemoLineFromPostedInvoiceLineOnBeforeCreateDocumentLineFromCVEntry(PurchInvLine: Record "Purch. Inv. Line"; PurchaseHeader: Record "Purchase Header"; VendorLedgerEntry: Record "Vendor Ledger Entry"; Currency: Record "Currency"; var AdvanceCalcDocLines: Record "KVSADVAdvanceCalcDocLines"; CreditMemoAmount: Decimal; CreditMemoAmountMustConsidered: Boolean; var TransferLine: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVAdvanceDocCreationPurch", 'OnCreateCreditMemoLineFromPostedInvoiceLineOnBeforeCreateDocumentLineFromCVEntry', '', false, false)]
local procedure DoSomethingOnCreateCreditMemoLineFromPostedInvoiceLineOnBeforeCreateDocumentLineFromCVEntry(PurchInvLine: Record "Purch. Inv. Line"; PurchaseHeader: Record "Purchase Header"; VendorLedgerEntry: Record "Vendor Ledger Entry"; Currency: Record "Currency"; var AdvanceCalcDocLines: Record "KVSADVAdvanceCalcDocLines"; CreditMemoAmount: Decimal; CreditMemoAmountMustConsidered: Boolean; var TransferLine: Boolean)
begin
end;