PaymCalendarSourceLedgerJournalTrans::getAdjustedDate Method [AX 2012]

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

client server public static PaymCalendarAdjustedDate getAdjustedDate(LedgerJournalTrans _ledgerJournalTrans)

Run On

Called

Parameters

_ledgerJournalTrans
Type: LedgerJournalTrans Table
The ledger journal transaction table buffer that specifies the due date and the calendar source.

Return Value

Type: PaymCalendarAdjustedDate Class
An instance of the PaymCalendarAdjustedDate record 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: