Share via


ReleaseUpdateDB60_Ledger.allowDupTaxLedAccGrpCodeNumCompIdx_IN 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_Ledger

Method

allowDupTaxLedAccGrpCodeNumCompIdx_IN

Description

Updates the GroupCodeNumTypeComponentIdx index in the TaxLedgerAccounts_IN table to allow for duplicate records.

Affected Modules and Tables

Affected Modules

Ledger

Affected Tables

TaxLedgerAccounts_IN

Remarks

The TaxAccountGroup, AccountCode and RegistrationNumber fields are replaced with the new TaxLedgerAccountSetup surrogate key field in the GroupCodeNumTypeComponentIdx unique index. Also, the Component and LedgerAccount fields are replaced with the record IDs of the TaxComponentTable_IN and DimensionAttributeValueComibation tables. Initially these fields contains no values. So the index is set to allow for duplicates before the field is updated with the value of the record IDs of the corresponding tables.