Codeunit 18008370 EOS Comm. Multiple Occurr.

Codeunit 18008370 EOS Comm. Multiple Occurr.

Gathers all functions used to handle multiple occurrences

Events

OnBeforeGetOccurrenceFactor

local procedure OnBeforeGetOccurrenceFactor(CustLedgerEntry: Record "Cust. Ledger Entry"; FromPosting: Boolean; var PaymentLineNo: Integer; DocumentLedgerEntryNo: Integer; var Factor: Decimal; var IsHandled: Boolean)

Raised before standard GetOccurrenceFactor procedure allowing custom processing

Parameters / Return Value

  • CustLedgerEntry Record "Cust. Ledger Entry"

    Current Customer ledger entry

  • FromPosting Boolean

    Executed while posting or while commission calculation

  • PaymentLineNo Integer

    Current posted Payment Line Number

  • DocumentLedgerEntryNo Integer

    Commission document ledger entry No.

  • Factor Decimal

    Calculed Factor percentage

  • IsHandled Boolean

    Return true ho skip standard GetOccurrenceFactor processing


OnAfterGetOccurrenceFactor

local procedure OnAfterGetOccurrenceFactor(CustLedgerEntry: Record "Cust. Ledger Entry"; FromPosting: Boolean; var PaymentLineNo: Integer; DocumentLedgerEntryNo: Integer; var Factor: Decimal)

Raised after standard GetOccurrenceFactor procedure allowing custom “factor” calculation/changes

Parameters / Return Value

  • CustLedgerEntry Record "Cust. Ledger Entry"

    Current Customer ledger entry

  • FromPosting Boolean

    Executed while posting or while commission calculation

  • PaymentLineNo Integer

    Current posted Payment Line Number

  • DocumentLedgerEntryNo Integer

    Commission document ledger entry No.

  • Factor Decimal

    Calculed Factor percentage



EOS Labs -