PaymCalendarProcessor.adjustDateForCalendar Method [AX 2012]

Adjusts the due date so that it falls on a business day per specified calendar.

public DueDate adjustDateForCalendar(
    DueDate _dueDate, 
    PaymentDueDateUpdatePolicy _updatePolicy, 
    PaymCalendarFindCalendarResults _calendar)

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 seeking the next valid business day.
_calendar
Type: PaymCalendarFindCalendarResults Class
A class that specifies the payment calendar.

Return Value

Type: DueDate Extended Data Type
The adjusted due date.

If no adjustment is needed, the original date is returned.

Community Additions

ADD
Show: