What causes a posting failure for intercompany direct delivery orders?
Overview
When creating an intercompany direct delivery SO, a posting failure error is given.
Environment
Microsoft Dynamics AX 2012 R2 CU7
Resolution
- In an AX , where multiple companies exist and intercompany direct deliveries are configured, when attempting to make a packing slip a direct delivery SO, and the item has a taxation group setup under "Purchase", it will cause an error to trigger on this line:
- \Classes\Tax\allocateInTaxWorkTrans - Line #258
taxWorkTrans.TaxAmount = Conpeek(ConAmtNumber,1)*(-1);
- \Classes\Tax\allocateInTaxWorkTrans - Line #258
- It errors because "ConAmtNumber" never gets a value and is an empty container.
- It never gets a value because there is no scenario where "taxWorkTrans.SourceTableId" is handled for when the table is PurchLine.
- Apply the hotfix Avalara AvaTax for Microsoft Dynamics AX 2012 R2 CU7 version AX 6.2.1000.4051.01.16