Share via


SalesCalcAvailableDlvDates.initMaster Method [AX 2012]

Instantiates which date and date type to use for delivery date calculation.

Syntax

protected void initMaster([SalesDlvDateType _masterDateType])

Run On

Called

Parameters

Remarks

The master date is the date that is used as starting point for the delivery date control calculation. There are four types of master dates:

  • Confirmed receipt dates

  • Confirmed ship date

  • Requested receipt date

  • Confirmed receipt date

The type can be determined either by the _masterDateType parameter or by the content of the four date fields. If the type is being determined by the content of the date field, the four date fields is prioritized in the order shown in the list earlier in this section. This means that if all four date fields are entered, for example, the type of the master date would be the confirmed receipt date, and then the confirmed receipt date will be the starting point for the delivery date control calculation.

If none of the date fields are entered, the type would be the requested ship date and the master date would be set as equal to the effective order date, plus the sales lead.

See Also

Reference

SalesCalcAvailableDlvDates Class