This article applies to Microsoft Dynamics AX 2012 R2 for Mexico.
Symptoms
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.
Cause
This problem occurs because of the code in the "\Classes\CustInvoiceJourEInvoiceJourMap_V2_2_MX\subTotal" class method, where the code is as follows:
return custInvoiceJour.SalesBalance + this.totalDiscountAmount() + CustInvoiceJour.SumMarkup;
This code returns the following and incorrectly populates the <subtotal> XML tag:
Amount in the sales order + Discount Amount + Misc Charges
Resolution
Hotfix information
A supported hotfix is available from Microsoft. There is a "Hotfix download available" section at the top of this Knowledge Base article. If you are encountering an issue downloading, installing this hotfix, or have other technical support questions, contact your partner or, if enrolled in a support plan directly with Microsoft, you can contact technical support for Microsoft Dynamics and create a new support request. To do this, go to the following Microsoft website:
https://mbs.microsoft.com/support/newstart.aspxYou can also contact technical support for Microsoft Dynamics by telephone by using these links for country specific telephone numbers. To do this, go to one of the following Microsoft websites: Partners
https://mbs.microsoft.com/partnersource/supportCustomers
https://mbs.microsoft.com/customersource/support/information/SupportInformation/global_support_contacts_eng.htmIn special cases, charges that are ordinarily incurred for support calls may be canceled if a Technical Support Professional for Microsoft Dynamics and related products determines that a specific update will resolve your problem. The usual support costs will apply to any additional support questions and issues that do not qualify for the specific update in question.
Installation information
We recommend that you apply the hotfix in a test environment before you apply the hotfix in a production environment.
For more information about how to install this hotfix, click the following article number to go to the article in the Microsoft Knowledge Base:893082 How to install a Microsoft Dynamics AX hotfix
Prerequisites
You must have Microsoft Dynamics AX 2012 R2 installed to apply this hotfix.
Restart requirement
You must restart the Application Object Server (AOS) service after you apply this hotfix.
This hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
File name |
File version |
File size |
Date |
Time |
Platform |
---|---|---|---|---|---|
Aximpactanalysis.exe |
Not Applicable |
61,136 |
20-Nov-2012 |
12:39 |
x86 |
Axupdate.exe |
Not Applicable |
61,120 |
20-Nov-2012 |
12:39 |
x86 |
Licensetermsar.rtf |
Not Applicable |
2,173 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermscs.rtf |
Not Applicable |
91,247 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermsda.rtf |
Not Applicable |
101,181 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermsde.rtf |
Not Applicable |
116,642 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermsen.rtf |
Not Applicable |
102,374 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermses.rtf |
Not Applicable |
96,985 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermset.rtf |
Not Applicable |
102,895 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermsfi.rtf |
Not Applicable |
106,101 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermsfr.rtf |
Not Applicable |
130,011 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermshu.rtf |
Not Applicable |
93,010 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermsis.rtf |
Not Applicable |
36,458 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermsit.rtf |
Not Applicable |
115,086 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermsja.rtf |
Not Applicable |
105,917 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermslt.rtf |
Not Applicable |
122,674 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermslv.rtf |
Not Applicable |
105,401 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermsnb-no.rtf |
Not Applicable |
115,700 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermsnl.rtf |
Not Applicable |
110,040 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermspl.rtf |
Not Applicable |
116,322 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermspt-br.rtf |
Not Applicable |
101,514 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermsru.rtf |
Not Applicable |
148,577 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermssv.rtf |
Not Applicable |
115,453 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermsth.rtf |
Not Applicable |
153,768 |
20-Nov-2012 |
12:39 |
Not Applicable |
Licensetermszh-hans.rtf |
Not Applicable |
99,245 |
20-Nov-2012 |
12:39 |
Not Applicable |
Dynamicsax2012r2-kb2812914-foundation.axmodel |
6.2.1000.398 |
12,552 |
05-Feb-2013 |
09:10 |
Not Applicable |
Dynamicsax2012r2-kb2812914-syplabels.axmodel |
6.2.1000.398 |
633,088 |
05-Feb-2013 |
09:10 |
Not Applicable |
Axsetupsp.exe |
6.2.139.8316 |
1,390,784 |
20-Nov-2012 |
12:39 |
x86 |
Axutillib.dll |
6.2.120.0 |
929,472 |
05-Feb-2013 |
09:10 |
x86 |
Microsoft.dynamics.servicing.operations.dll |
6.2.73.8303 |
37,168 |
01-Nov-2012 |
16:07 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
387,288 |
05-Feb-2013 |
09:10 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
375,000 |
05-Feb-2013 |
09:02 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
375,000 |
05-Feb-2013 |
09:02 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
379,096 |
05-Feb-2013 |
09:10 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
379,096 |
05-Feb-2013 |
09:10 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
370,904 |
05-Feb-2013 |
09:02 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
375,000 |
05-Feb-2013 |
09:10 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
383,192 |
05-Feb-2013 |
09:02 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
395,480 |
05-Feb-2013 |
09:02 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
375,000 |
05-Feb-2013 |
09:10 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
379,096 |
05-Feb-2013 |
09:10 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
387,288 |
05-Feb-2013 |
09:02 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
375,000 |
05-Feb-2013 |
09:02 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
375,000 |
05-Feb-2013 |
09:10 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
375,000 |
05-Feb-2013 |
09:10 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
379,096 |
05-Feb-2013 |
09:10 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
379,096 |
05-Feb-2013 |
09:10 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
379,096 |
05-Feb-2013 |
09:10 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
395,480 |
05-Feb-2013 |
09:02 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
375,000 |
05-Feb-2013 |
09:02 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
415,960 |
05-Feb-2013 |
09:02 |
x86 |
Axsetupsp.resources.dll |
6.2.147.8303 |
370,904 |
05-Feb-2013 |
09:10 |
x86 |
References
For information about how to set up parameters for generating electronic invoices for Mexico, see (MEX) Set up parameters and authorization codes for an electronic invoice [AX 2012].
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.