ReleaseUpdateDB60_Vend.updatePurchCRisModified Upgrade Script
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Class |
ReleaseUpdateDB60_Vend |
Method |
updatePurchCRisModified |
Description |
Sets the new PurchTable.DocumentState attribute to the VersioningDocumentState::Approved enumeration value for all existing Purchase Orders. Marks existing records that compose a Purchase Order with the new IsModified attribute equal to the Yes value. |
Affected Modules and Tables
Affected Modules |
---|
Accounts payable |
Affected Tables |
---|
PurchTable |
PurchLine |
MarkupTrans |
VendPaymSched |
VendPaymSchedLine |
Remarks
The script handles all company accounts in one process, of type Shared, and uses a UPDATE %1 command in direct SQL. The manipulation of the MarkupTrans, VendPaymSched, and VendPaymSchedLine tables is limited to records that are related to a Purchase Order.
New Tables or Fields
Table |
Field |
Extended Data Type -or- Base Enum |
---|---|---|
PurchTable |
DocumentState |
VersioningDocumentState |
PurchTable |
IsModfied |
NoYes |
PurchLine |
IsModified |
NoYes |
MarkupTrans |
IsModified |
NoYes |
VendPaymSched |
IsModified |
NoYes |
VendPaymSchedLine |
IsModified |
NoYes |