Compartir a través de


ReleaseUpdateDB60_Vend.updatePurchCRisModified

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

Class

ReleaseUpdateDB60_Vend

Method

updatePurchCRisModified

Description

Initializes the <c>isModfied</c> field to the <c>NoYes::Yes</c> enumeration value for all records that have been upgraded from an earlier version. Initializes the <c>DocumentState</c> on <c>PurchTable</c> dependent on <c>PurchStatus</c> Initialized the <c>isFinalized</c> on <c>PurchLine</c> dependent on <c>PurchStatus</c>

Affected Modules and Tables

Affected Modules

Accounts payable

Affected Tables

PurchTable

PurchLine

MarkupTrans

VendPaymSched

VendPaymSchedLine

Remarks

As the history tables are new to the current version, no information is stored in these tables for upgraded purchase orders.All records are marked as modified to be included in the first copy to the history tables.The <c>DocumentState</c> field on all existing purchase orders is set to a <c>VersioningDocumentState::Approved</c> enumeration value.The method is based on direct SQL to make sure that it has best possible performance.