Consider the following scenario:
- You set up the CFD parameters for electronic invoices in Microsoft Dynamics AX 2012 R2.
- You create a sales order and apply a discount of 10-percent in the header level.
- You add a line item to the sales order that contains a "Phones" sales category together with a unit price of 1,000 and then you attach the sales tax to the line item.
- You confirm the sales order and then post it.
- In Accounts Receivable, you click Inquiries, click Journals and then click CFD (electronic invoices).
- On the posted invoice, you click Functions and then click View XML file.
In this scenario, under the <subTotal> XML tag, you see a value of 1,100. This value unexpectedly includes the unit price in addition to the discount and is the actual value of the item. However, you expect the <subTotal> XML tag to contain the value of the amount in the sales order before discounts and taxes, or in this scenario, 1,000.