PaymCalendarSourceVendConsInvoice_JP::getAdjustedDueDate Method [AX 2012]

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

client server public static PaymCalendarAdjustedDate getAdjustedDueDate(
    DueDate _dueDate, 
    PaymentDueDateUpdatePolicy _updatePolicy, 
    VendConsInvoice_JP _vendConsInvoice)

Run On

Called

Parameters

_dueDate
Type: DueDate Extended Data Type
The original due date.
_updatePolicy
Type: PaymentDueDateUpdatePolicy Enumeration
A value that specifies the search direction when the next valid business day is searched for.
_vendConsInvoice
Type: VendConsInvoice_JP Table
The vendor consolidated invoice table buffer that specifies the calendar source.

Return Value

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

If no adjustment is required, 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: