procedure UpdateVATOnLines(PurchHeader: Record "Purchase Header", var PurchLine: Record "Purchase Line", var VATAmountLine: Record "VAT Amount Line", DocumentType: Option)
procedure CalcVATAmountLines(var PurchHeader: Record "Purchase Header", var PurchLine: Record "Purchase Line", var VATAmountLine: Record "VAT Amount Line", DocumentType: Option)
procedure SumPrepmt(PurchHeader: Record "Purchase Header", var PurchLine: Record "Purchase Line", var VATAmountLine: Record "VAT Amount Line", var TotalAmount: Decimal, var TotalVATAmount: Decimal, var VATAmountText: Text[30])
procedure BuildInvLineBuffer(PurchHeader: Record "Purchase Header", var PurchLine: Record "Purchase Line", DocumentType: Option, var PrepmtInvLineBuf: Record "Prepayment Inv. Line Buffer")
procedure FillInvLineBuffer(PurchHeader: Record "Purchase Header", PurchLine: Record "Purchase Line", var PrepmtInvLineBuf: Record "Prepayment Inv. Line Buffer")
[IntegrationEvent(False,False)]
local procedure OnAfterCreateDimensionsProcedure(var PurchaseLine: Record "Purchase Line", DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])
[IntegrationEvent(False,False)]
local procedure OnAfterApplyFilter(var PurchaseLine: Record "Purchase Line", PurchaseHeader: Record "Purchase Header", DocumentType: Option)
[IntegrationEvent(False,False)]
local procedure OnAfterCalcVATAmountLines(PurchaseHeader: Record "Purchase Header", var PurchaseLine: Record "Purchase Line", var VATAmountLine: Record "VAT Amount Line", DocumentType: Option)
[IntegrationEvent(False,False)]
local procedure OnAfterCheckPrepmtDoc(PurchHeader: Record "Purchase Header", DocumentType: Option, var ErrorMessageMgt: Codeunit "Error Message Management")
[IntegrationEvent(False,False)]
local procedure OnAfterCreateLinesOnBeforeGLPosting(var PurchaseHeader: Record "Purchase Header", PurchInvHeader: Record "Purch. Inv. Header", PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.", var TempPrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer" temporary, DocumentType: Option, var LastLineNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnAfterFillInvLineBuffer(var PrepmtInvLineBuf: Record "Prepayment Inv. Line Buffer", PurchLine: Record "Purchase Line", CommitIsSuppressed: Boolean, PurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnAfterInsertInvoiceRounding(PurchaseHeader: Record "Purchase Header", var PrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer", var TotalPrepmtInvLineBuf: Record "Prepayment Inv. Line Buffer", var PrevLineNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnAfterPostPrepayments(var PurchHeader: Record "Purchase Header", DocumentType: Option, CommitIsSuppressed: Boolean, var PurchInvHeader: Record "Purch. Inv. Header", var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.")
[IntegrationEvent(False,False)]
local procedure OnAfterPostBalancingEntry(var GenJnlLine: Record "Gen. Journal Line", VendLedgEntry: Record "Vendor Ledger Entry", TotalPrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer", TotalPrepmtInvLineBufferLCY: Record "Prepayment Inv. Line Buffer", CommitIsSupressed: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterPostVendorEntry(var GenJnlLine: Record "Gen. Journal Line", TotalPrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer", TotalPrepmtInvLineBufferLCY: Record "Prepayment Inv. Line Buffer", CommitIsSupressed: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterPostPrepmtInvLineBuffer(var GenJnlLine: Record "Gen. Journal Line", PrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer", CommitIsSuppressed: Boolean, var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line")
[IntegrationEvent(False,False)]
local procedure OnAfterPurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header", PurchHeader: Record "Purchase Header", CommitIsSupressed: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterPurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line", PurchInvHeader: Record "Purch. Inv. Header", PrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer", CommitIsSupressed: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterPurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line", PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.", PrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer", CommitIsSupressed: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterRoundAmounts(PurchaseHeader: Record "Purchase Header", var PrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer", var TotalPrepmtInvLineBuf: Record "Prepayment Inv. Line Buffer", var TotalPrepmtInvLineBufLCY: Record "Prepayment Inv. Line Buffer")
[IntegrationEvent(False,False)]
local procedure OnAfterUpdatePostedPurchDocument(DocumentType: Option, DocumentNo: Code[20], CommitIsSuppressed: Boolean)
Parameters
Name
Type
Description
DocumentType
Option
DocumentNo
Code[20]
CommitIsSuppressed
Boolean
OnAfterUpdateVATOnLines
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateVATOnLines(PurchaseHeader: Record "Purchase Header", var PurchaseLine: Record "Purchase Line", VATAmountLine: Record "VAT Amount Line", DocumentType: Option)
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateLinesFromBuffer(var PurchHeader: Record "Purchase Header", var TempGlobalPrepmtInvLineBuf: Record "Prepayment Inv. Line Buffer" temporary, var LineCount: Integer, var Window: Dialog, var PurchInvHeader: Record "Purch. Inv. Header", var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.", var PostedDocTabNo: Integer, var IsHandled: Boolean, DocumentType: Option, var LastLineNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnBeforePurchaseAssertPrepmtAmountNotMoreThanDocAmount(var VendLedgEntry: Record "Vendor Ledger Entry", PurchHeader: Record "Purchase Header", PurchLine: Record "Purchase Line", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforePurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header", PurchHeader: Record "Purchase Header", CommitIsSupressed: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforePurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line", PurchInvHeader: Record "Purch. Inv. Header", PrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer", CommitIsSupressed: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforePurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line", PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.", PrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer", CommitIsSupressed: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforePostBalancingEntry(var GenJnlLine: Record "Gen. Journal Line", VendLedgEntry: Record "Vendor Ledger Entry", TotalPrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer", TotalPrepmtInvLineBufferLCY: Record "Prepayment Inv. Line Buffer", CommitIsSupressed: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforePostVendorEntry(var GenJnlLine: Record "Gen. Journal Line", TotalPrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer", TotalPrepmtInvLineBufferLCY: Record "Prepayment Inv. Line Buffer", CommitIsSupressed: Boolean, PurchaseHeader: Record "Purchase Header", DocumentType: Option)
[IntegrationEvent(False,False)]
local procedure OnBeforePostPrepmtInvLineBuffer(var GenJnlLine: Record "Gen. Journal Line", PrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer", CommitIsSupressed: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeSetStatusPendingPrepayment(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateDocNos(var PurchaseHeader: Record "Purchase Header", DocumentType: Option, var DocNo: Code[20], var NoSeriesCode: Code[20], var ModifyHeader: Boolean, var PreviewMode: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdatePostedPurchaseDocument(var VendorLedgerEntry: Record "Vendor Ledger Entry", var PurchInvHeader: Record "Purch. Inv. Header", var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.", DocumentType: Option, var IsHandled: Boolean, DocumentNo: Code[20])
[IntegrationEvent(False,False)]
local procedure OnCodeOnBeforePostBalancingEntry(var PurchaseHeader: Record "Purchase Header", var TempPrepaymentInvLineBuffer: Record "Prepayment Inv. Line Buffer" temporary)
[IntegrationEvent(False,False)]
local procedure OnCodeOnBeforePostVendorEntry(var PurchaseHeader: Record "Purchase Header", var TempPrepaymentInvLineBuffer: Record "Prepayment Inv. Line Buffer" temporary)
[IntegrationEvent(False,False)]
local procedure OnPostVendorEntryOnAfterInitNewLine(var GenJnlLine: Record "Gen. Journal Line", PurchHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnRoundAmountsOnBeforeIncrAmoutns(PurchaseHeader: Record "Purchase Header", var PrepmtInvLineBuf: Record "Prepayment Inv. Line Buffer", var TotalPrepmtInvLineBuf: Record "Prepayment Inv. Line Buffer", var TotalPrepmtInvLineBufLCY: Record "Prepayment Inv. Line Buffer")
[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnAfterGetRemainder(var VATAmountLineRemainder: Record "VAT Amount Line", var RemainderExists: Boolean)
[IntegrationEvent(False,False)]
local procedure OnUpdateVATOnLinesOnBeforePurchLineModify(PurchaseHeader: Record "Purchase Header", var PurchaseLine: Record "Purchase Line", var TempVATAmountLineRemainder: Record "VAT Amount Line", NewAmount: Decimal, NewAmountIncludingVAT: Decimal, NewVATBaseAmount: Decimal)
[IntegrationEvent(False,False)]
local procedure OnFillInvLineBufferOnAfterInit(var PrepaymentInvLineBuffer: Record "Prepayment Inv. Line Buffer", PurchaseHeader: Record "Purchase Header", PurchaseLine: Record "Purchase Line")
[IntegrationEvent(False,False)]
local procedure OnCodeOnAfterUpdateHeaderAndLines(var PurchaseHeader: Record "Purchase Header", var PurchInvHeader: Record "Purch. Inv. Header", var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.", var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line", PreviewMode: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdatePrepmtAmountOnPurchLines(PurchaseHeader: Record "Purchase Header", NewTotalPrepmtAmount: Decimal, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeInsertExtendedText(TabNo: Integer, DocNo: Code[20], GLAccNo: Code[20], DocDate: Date, LanguageCode: Code[10], var PrevLineNo: Integer, var IsHandled: Boolean)
Parameters
Name
Type
Description
TabNo
Integer
DocNo
Code[20]
GLAccNo
Code[20]
DocDate
Date
LanguageCode
Code[10]
PrevLineNo
Integer
IsHandled
Boolean
OnBeforeGetPurchLines
[IntegrationEvent(False,False)]
local procedure OnBeforeGetPurchLines(PurchaseHeader: Record "Purchase Header", DocumentType: Option, var ToPurchaseLine: Record "Purchase Line", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterCheckOpenPrepaymentLines(var PurchaseHeader: Record "Purchase Header", DocumentType: Option, var Found: Boolean)
[IntegrationEvent(False,False)]
local procedure OnInsertVATAmountOnBeforeInsert(var PurchaseLine: Record "Purchase Line", var VATAmountLine: Record "VAT Amount Line")
[IntegrationEvent(False,False)]
local procedure OnFindVATAmountLineOnAfterSetFilters(var PurchaseLine: Record "Purchase Line", var VATAmountLine: Record "VAT Amount Line")
[IntegrationEvent(False,False)]
local procedure OnBuildInvLineBufferOnPrepmtAmountZero(PurchaseHeader: Record "Purchase Header", PurchaseLine: Record "Purchase Line", var PrepaymentInvLineBuffer2: Record "Prepayment Inv. Line Buffer", var PrepaymentInvLineBuffer: Record "Prepayment Inv. Line Buffer", var TempPurchaseLineSource: Record "Purchase Line" temporary)
[IntegrationEvent(False,False)]
local procedure OnCreateDimensionsOnAfterAddDimSources(var PurchaseLine: Record "Purchase Line", DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])