Codeunit 18122514 EOS001 DTI Settlement

Codeunit 18122514 EOS001 DTI Settlement

Methods

PostSettlement

procedure PostSettlement(SettlementId: Guid)

Parameters / Return Value

  • SettlementId Guid

EnqueueSettlementToReverse

procedure EnqueueSettlementToReverse(EntryNo: Integer): Boolean

Parameters / Return Value

  • EntryNo Integer

  • Returns Boolean


Init

procedure Init()

PostAll

procedure PostAll()

Events

OnBeforePostSettlementReversal

local procedure OnBeforePostSettlementReversal(var InvoiceDtiEntry: Record "EOS001 DTI Entry"; var CanPost: Enum "EOS066 TriState Boolean")

Raised before settlement reversal is posted for a given invoice entry.

Parameters / Return Value

  • InvoiceDtiEntry Record "EOS001 DTI Entry"

    The invoice entry for which the reversal is being posted.

  • CanPost Enum "EOS066 TriState Boolean"

    Set this to “False” if you want to skip posting of settlement reversal. “Undefined” or “True” will post allow posting of the settlement reversal.


OnBeforeInsertSettlementEntry

local procedure OnBeforeInsertSettlementEntry(InvoiceEntry: Record "EOS001 DTI Entry";ShipmentEntry: Record "EOS001 DTI Entry";var SettlementEntry: Record "EOS001 DTI Entry")

Raised before the settlement DTI entry is written to the database.

Parameters / Return Value

  • InvoiceEntry Record "EOS001 DTI Entry"

    The invoice entry.

  • ShipmentEntry Record "EOS001 DTI Entry"

    The shipment entry.

  • SettlementEntry Record "EOS001 DTI Entry"

    The settlement entry that is being written.


OnPostGenJnlLineBeforePost

local procedure OnPostGenJnlLineBeforePost(var GenJnlLine: Record "Gen. Journal Line";SettlementEntry: Record "EOS001 DTI Entry";ShipmentEntry: Record "EOS001 DTI Entry";InvoiceEntry: Record "EOS001 DTI Entry")

Raised before the general journal line for a settlement entry is being posted.

Parameters / Return Value

  • GenJnlLine Record "Gen. Journal Line"

    The general journal line being posted.

  • SettlementEntry Record "EOS001 DTI Entry"

    The settlement entry.

  • ShipmentEntry Record "EOS001 DTI Entry"

    The shipment entry.

  • InvoiceEntry Record "EOS001 DTI Entry"

    The invoice entry.



EOS Labs -