PaymCalendarSourceLedgerJournalTrans::getAdjustedDateForPaymentMethodChange Method [AX 2012]

Gets the adjusted due date so that it falls on a business day per calendar rules.

client server public static PaymCalendarAdjustedDate getAdjustedDateForPaymentMethodChange(LedgerJournalTrans _ledgerJournalTrans, PaymCalendarModuleType _paymCalendarModuleType)

Run On

Called

Parameters

_ledgerJournalTrans
Type: LedgerJournalTrans Table
The ledger journal transaction table buffer that specifies the due date and the calendar source.
_paymCalendarModuleType
Type: PaymCalendarModuleType Enumeration
The moduole type to restrict the calendar rule by.

Return Value

Type: PaymCalendarAdjustedDate Class
An instance of PaymCalendarAdjustedDate which contains the adjusted due date together with the calendar and rule that was applied when adjusting the date.

If no adjustment is needed, the original date is returned. An empty record ID is returned for the payment calendar and calendar rule whenever a calendar is not found.

Show: