Codeunit 18123064 EOS INV Split Payment Mgt.

Codeunit 18123064 EOS INV Split Payment Mgt.

Methods

IsSplitPayment

procedure IsSplitPayment(VatBusPostingGroup: Code[20]; VatProdPostingGroup: Code[20]): Boolean

Parameters / Return Value

  • VatBusPostingGroup Code[20]

  • VatProdPostingGroup Code[20]

  • Returns Boolean


GetSplitPaymentEntries

procedure GetSplitPaymentEntries(CustLedgEntry: Record "Cust. Ledger Entry"; var EntryAmountBuf: Record "Entry No. Amount Buffer")

Parameters / Return Value

  • CustLedgEntry Record "Cust. Ledger Entry"

  • EntryAmountBuf Record "Entry No. Amount Buffer"


HasSplitPaymentEntries

procedure HasSplitPaymentEntries(DocVariant: Variant): Boolean

Parameters / Return Value

  • DocVariant Variant

  • Returns Boolean


Events

OnBeforePostSplitPmnt

local procedure OnBeforePostSplitPmnt(var LocGenJnlLine: Record "Gen. Journal Line"; VATEntry: Record "VAT Entry"; CustLedgEntry: Record "Cust. Ledger Entry"; TmpSplitPaymentBuffer: Record "G/L Entry" temporary)

Raised before a splitpayment journal line in posted

Parameters / Return Value

  • LocGenJnlLine Record "Gen. Journal Line"

    Journal line you’re preparing to post

  • VATEntry Record "VAT Entry"

    Source VAT entry record

  • CustLedgEntry Record "Cust. Ledger Entry"

    Source customer ledger entry reccord

  • TmpSplitPaymentBuffer Record "G/L Entry"

    Temporary buffer based in GLEntry that groups customer entries by “Customer No.",“Document No.",“Posting Date”,“Document Type”,“Transaction No.”


OnBeforeForceTransactionConsistency

local procedure OnBeforeForceTransactionConsistency(CustLedgEntry: Record "Cust. Ledger Entry"; var ForceTransactionConsistency: Boolean)

Creating and posting split payment vat entry and then applying it to the original Invoice Custumer Ledger Entry is a single transaction

Parameters / Return Value

  • CustLedgEntry Record "Cust. Ledger Entry"

    First Customer Ledger Entry

  • ForceTransactionConsistency Boolean

    Return false to avoid single transaction enforcement.



EOS Labs -