Implementing InventTrans Refactoring For Microsoft Dynamics AX Applications AX2012
Implementing InventTrans Refactoring For Microsoft Dynamics AX Applications AX2012
Implementing InventTrans
Refactoring for Microsoft
Dynamics AX 2012
Applications
White Paper
http://microsoft.com/dynamics/ax
Audience ..................................................................................................... 3
Design patterns........................................................................................... 6
Relationships between inventory transaction originating tables and the InventTrans table .............. 6
Modifying custom code ....................................................................................................... 7
The Direction field ................................................................................................................. 7
The TransType and TransRefId fields ....................................................................................... 7
The ItemRouteId and ItemBomId fields ................................................................................... 7
Conclusion .................................................................................................. 8
Audience
This document is intended for developers building new applications for Microsoft Dynamics AX 2012,
as well as for developers updating their existing application code and data.
Document purpose
This document highlights the new design pattern used to implement relationships between the
InventTrans table and inventory transaction originating tables. When detailing the new pattern, this
document also describes the existing pattern that is being replaced and how developers should
approach refactoring their existing code.
RecId RecId
TransType This field has been moved to the new InventTransOrigin table and is
renamed ReferenceCategory.
TransRefId This field has been moved to the new InventTransOrigin table and is
renamed ReferenceId.
Direction This field was redundant (can be deduced from the Qty field) and has
been removed.
InventTransIdReturn This field has been replaced by the new ReturnInventTransOrigin field,
which has been added to the InventTrans table. The functionality remains
unchanged.
CustVendAC This field has been replaced by the Party field in the new
InventTransOrigin table. The field has a relationship to the DirParty table.
AssetId This field has been removed because the table AssetInventTrans already
exists and its InventTransId field has been replaced with a reference to
the new InventTransOrigin table.
AssetBookId This field has been removed because the tablee AssetInventTrans already
exists and its InventTransId field has been replaced with a reference to
the new InventTransOrigin table.
Design patterns
This section discusses how to implement refactoring for Microsoft Dynamics AX 2012. If you need to
refer to the physical model for the tables, see the Data model changes earlier in this document.
This document is provided ―as-is.‖ Information and views expressed in this document, including URL and other
Internet Web site references, may change without notice. You bear the risk of using it.
Some examples depicted herein are provided for illustration only and are fictitious. No real association or
connection is intended or should be inferred.
This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You
may copy and use this document for your internal, reference purposes. You may modify this document for your
internal, reference purposes.
Microsoft, the Microsoft Dynamics Logo, Microsoft Dynamics, MorphX, SQL Server, Visual C#, Visual Studio, and
Windows are trademarks of the Microsoft group of companies.