Share via


PmfReleaseUpdateDB31_Pds.upgradePdsCustSellableDays

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Class

PmfReleaseUpdateDB31_Pds

Method

upgradePdsCustSellableDays

Description

Updates the PdsCustSellableDays table with the customer reference and the related del_PdsSellableDays value.

Affected Modules and Tables

Affected Modules

Process Distribution

Affected Tables

CustTable

PdsCustSellableDays

Remarks

The method will find any CustTable records that currently have a del_PdsSellableDays value. For each record, an entry will be created in the PdsCustSellableDays table and the value of the PdsSellableDays field from the CustTable table will be entered as a PdsSellableDays value in the new table. Then a validation will be conducted to verify that the correct value was entered for the customer and the customer record and the PdsSellableDays field value will be set to zero and the CustTable record is updated.