Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

The electronic invoice XML file for Mexico is incorrect when a discount is used in a sales order in Microsoft Dynamics AX 2012 R2



This article applies to Microsoft Dynamics AX 2012 R2 for Mexico.

↑ Back to the top


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.

↑ Back to the top


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

↑ Back to the top


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:You 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:

PartnersCustomersIn 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.

↑ Back to the top


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.
File information
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 nameFile versionFile sizeDateTimePlatform
Aximpactanalysis.exeNot Applicable61,13620-Nov-201212:39x86
Axupdate.exeNot Applicable61,12020-Nov-201212:39x86
Licensetermsar.rtfNot Applicable2,17320-Nov-201212:39Not Applicable
Licensetermscs.rtfNot Applicable91,24720-Nov-201212:39Not Applicable
Licensetermsda.rtfNot Applicable101,18120-Nov-201212:39Not Applicable
Licensetermsde.rtfNot Applicable116,64220-Nov-201212:39Not Applicable
Licensetermsen.rtfNot Applicable102,37420-Nov-201212:39Not Applicable
Licensetermses.rtfNot Applicable96,98520-Nov-201212:39Not Applicable
Licensetermset.rtfNot Applicable102,89520-Nov-201212:39Not Applicable
Licensetermsfi.rtfNot Applicable106,10120-Nov-201212:39Not Applicable
Licensetermsfr.rtfNot Applicable130,01120-Nov-201212:39Not Applicable
Licensetermshu.rtfNot Applicable93,01020-Nov-201212:39Not Applicable
Licensetermsis.rtfNot Applicable36,45820-Nov-201212:39Not Applicable
Licensetermsit.rtfNot Applicable115,08620-Nov-201212:39Not Applicable
Licensetermsja.rtfNot Applicable105,91720-Nov-201212:39Not Applicable
Licensetermslt.rtfNot Applicable122,67420-Nov-201212:39Not Applicable
Licensetermslv.rtfNot Applicable105,40120-Nov-201212:39Not Applicable
Licensetermsnb-no.rtfNot Applicable115,70020-Nov-201212:39Not Applicable
Licensetermsnl.rtfNot Applicable110,04020-Nov-201212:39Not Applicable
Licensetermspl.rtfNot Applicable116,32220-Nov-201212:39Not Applicable
Licensetermspt-br.rtfNot Applicable101,51420-Nov-201212:39Not Applicable
Licensetermsru.rtfNot Applicable148,57720-Nov-201212:39Not Applicable
Licensetermssv.rtfNot Applicable115,45320-Nov-201212:39Not Applicable
Licensetermsth.rtfNot Applicable153,76820-Nov-201212:39Not Applicable
Licensetermszh-hans.rtfNot Applicable99,24520-Nov-201212:39Not Applicable
Dynamicsax2012r2-kb2812914-foundation.axmodel6.2.1000.39812,55205-Feb-201309:10Not Applicable
Dynamicsax2012r2-kb2812914-syplabels.axmodel6.2.1000.398633,08805-Feb-201309:10Not Applicable
Axsetupsp.exe6.2.139.83161,390,78420-Nov-201212:39x86
Axutillib.dll6.2.120.0929,47205-Feb-201309:10x86
Microsoft.dynamics.servicing.operations.dll6.2.73.830337,16801-Nov-201216:07x86
Axsetupsp.resources.dll6.2.147.8303387,28805-Feb-201309:10x86
Axsetupsp.resources.dll6.2.147.8303375,00005-Feb-201309:02x86
Axsetupsp.resources.dll6.2.147.8303375,00005-Feb-201309:02x86
Axsetupsp.resources.dll6.2.147.8303379,09605-Feb-201309:10x86
Axsetupsp.resources.dll6.2.147.8303379,09605-Feb-201309:10x86
Axsetupsp.resources.dll6.2.147.8303370,90405-Feb-201309:02x86
Axsetupsp.resources.dll6.2.147.8303375,00005-Feb-201309:10x86
Axsetupsp.resources.dll6.2.147.8303383,19205-Feb-201309:02x86
Axsetupsp.resources.dll6.2.147.8303395,48005-Feb-201309:02x86
Axsetupsp.resources.dll6.2.147.8303375,00005-Feb-201309:10x86
Axsetupsp.resources.dll6.2.147.8303379,09605-Feb-201309:10x86
Axsetupsp.resources.dll6.2.147.8303387,28805-Feb-201309:02x86
Axsetupsp.resources.dll6.2.147.8303375,00005-Feb-201309:02x86
Axsetupsp.resources.dll6.2.147.8303375,00005-Feb-201309:10x86
Axsetupsp.resources.dll6.2.147.8303375,00005-Feb-201309:10x86
Axsetupsp.resources.dll6.2.147.8303379,09605-Feb-201309:10x86
Axsetupsp.resources.dll6.2.147.8303379,09605-Feb-201309:10x86
Axsetupsp.resources.dll6.2.147.8303379,09605-Feb-201309:10x86
Axsetupsp.resources.dll6.2.147.8303395,48005-Feb-201309:02x86
Axsetupsp.resources.dll6.2.147.8303375,00005-Feb-201309:02x86
Axsetupsp.resources.dll6.2.147.8303415,96005-Feb-201309:02x86
Axsetupsp.resources.dll6.2.147.8303370,90405-Feb-201309:10x86

↑ Back to the top


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].

↑ Back to the top


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.

↑ Back to the top


Keywords: kbsurveynew, kbexpertiseinter, kbmbspartner, kbmbsmigrate, kbmbsquickpub, kbnoloc, kbqfe, kbhotfixserver, kb, kbautohotfix, kbnomt, kbrapidpub, kbfix

↑ Back to the top

Article Info
Article ID : 2812914
Revision : 2
Created on : 2/17/2017
Published on : 2/17/2017
Exists online : False
Views : 93