ReleaseUpdateDB60_Vend.updateVendInvoiceIntrastat 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

updateVendInvoiceIntrastat

Description

Updates the vendInvoiceJour field on the VendInvoiceIntrastat table by looking for matching voucher and transDate fields in the VendInvoiceJour table.

Affected Modules and Tables

Affected Modules

Accounts payable

Affected Tables

VendInvoiceIntrastat

Remarks

The data model for the table is changed. The new vendInvoiceJour field is the foreign key to the VendInvoiceJour table and is updated by looking for matching transDate and voucher fields. If the DEL_Reversed field is set, a new record needs to be created as per the new data model to handle the reversal and cancellation scenario.

New Tables or Fields

Table

Field

Extended Data Type

-or- Base Enum

VendInvoiceIntrastat

VendInvoiceJour

RefRecId

Deleted Tables or Fields

Table

Field

VendInvoiceIntrastat

DEL_StatTriangularDeal

VendInvoiceIntrastat

DEL_Reversed

VendInvoiceIntrastat

DEL_TransDateReversed