KVSADVDepositMgtPurchase
Summary: This Codeunit handles all purchase-specific logic to create and handle Security Deposits
Procedures
UpsertDocumentLineForDeposit(Record Purchase Header, Integer, Integer, Code[20], Decimal, Record Purchase Line, Integer, Boolean) :
procedure UpsertDocumentLineForDeposit(DocumentHeader: Record "Purchase Header"; AdvanceChainNo: Integer; AdvancePlanEntryNo: Integer; DepositCode: Code[20]; DepositAmount: Decimal; var CreatedDocumentLine: Record "Purchase Line"; ForceStartFromLineNo: Integer; AddAmountToExistingLine: Boolean):
UpsertDocumentLineForDeposit(Record Purchase Header, Integer, Integer, Code[20], Decimal, Record Purchase Line, Integer, Boolean, Boolean, Decimal) :
procedure UpsertDocumentLineForDeposit(DocumentHeader: Record "Purchase Header"; AdvanceChainNo: Integer; AdvancePlanEntryNo: Integer; DepositCode: Code[20]; DepositAmount: Decimal; var CreatedDocumentLine: Record "Purchase Line"; ForceStartFromLineNo: Integer; AddAmountToExistingLine: Boolean; FixedAmount: Boolean; DepositPercentofAmount: Decimal):
Events
OnAfterSaveDepositsDocumentHeader(Record KVSADVAdvancePlanDeposit, Record Purchase Header) :
[IntegrationEvent(false, false)]
local procedure OnAfterSaveDepositsDocumentHeader(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; DocumentHeader: Record "Purchase Header"):
OnAddDocumentLineForDepositBeforeModify(Record Purchase Header, Record KVSADVSecurityDeposit, Record Purchase Line) :
[IntegrationEvent(false, false)]
local procedure OnAddDocumentLineForDepositBeforeModify(DocumentHeader: Record "Purchase Header"; SecurityDeposit: Record "KVSADVSecurityDeposit"; var DocumentLine: Record "Purchase Line"):
OnAfterInsertDepositHeaderBeforeModify(Record Purchase Header, Record Purch. Inv. Header, Record Purch. Inv. Line) :
[IntegrationEvent(false, false)]
local procedure OnAfterInsertDepositHeaderBeforeModify(var DepositInvHeader: Record "Purchase Header"; PostedInvHeader: Record "Purch. Inv. Header"; PostedInvLine: Record "Purch. Inv. Line"):
OnCreateDepositInvoiceLineForInvoiceLineOnBeforeDepositInvLineModify(Record Purch. Inv. Header, Record Purch. Inv. Line, Record Purchase Header, Record Purchase Line) :
Summary: This event is called before the Deposit Invoice Line is modified.
[IntegrationEvent(false, false)]
local procedure OnCreateDepositInvoiceLineForInvoiceLineOnBeforeDepositInvLineModify(PurchInvHeader: Record "Purch. Inv. Header"; PurchInvLine: Record "Purch. Inv. Line"; var DepositPurchaseHeader: Record "Purchase Header"; var DepositPurchaseLine: Record "Purchase Line"):
Parameters:
PurchInvHeader: The purchase invoice header.PurchInvLine: The purchase invoice line.DepositPurchaseHeader: The deposit purchase header.DepositPurchaseLine: The deposit purchase line.
Remarks: This event allows you to modify the deposit invoice line before it is saved.
OnAfterSetFilterForPrevExistingDepositLinesOnSaveDepositsDocumentHeader(Record Purchase Header, Record KVSADVAdvancePlanDeposit, Record Purchase Line) :
[IntegrationEvent(false, false)]
local procedure OnAfterSetFilterForPrevExistingDepositLinesOnSaveDepositsDocumentHeader(DocumentHeader: Record "Purchase Header"; var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; var DocumentLine: Record "Purchase Line"):
OnAfterSetFilterForPrevExistingDepositLineOnUpsertDocumentLineForDeposit(Record Purchase Header, Integer, Integer, Code[20], Decimal, Integer, Boolean, Record Purchase Line) :
[IntegrationEvent(false, false)]
local procedure OnAfterSetFilterForPrevExistingDepositLineOnUpsertDocumentLineForDeposit(DocumentHeader: Record "Purchase Header"; AdvanceChainNo: Integer; AdvancePlanEntryNo: Integer; DepositCode: Code[20]; DepositAmount: Decimal; ForceStartFromLineNo: Integer; AddAmountToExistingLine: Boolean; var DocumentLine: Record "Purchase Line"):
OnBeforeInsertDepositInvoiceHeader(Record Purch. Inv. Header, Record Purch. Inv. Line, Record KVSADVSecurityDeposit, Record Purchase Header) :
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertDepositInvoiceHeader(PostedInvHeader: Record "Purch. Inv. Header"; PostedInvLine: Record "Purch. Inv. Line"; Deposit: Record "KVSADVSecurityDeposit"; var DepositInvHeader: Record "Purchase Header"):