編輯

共用方式為


Electronic invoicing in the Mexican version

Mexican companies must be able to send invoices electronically as Comprobante Fiscal Digital por Internet (CFDI) files. Business Central supports CFDI so that you can export sales and service invoices and credit memos as electronic documents that have the required digital signature.

Note

The tax authority (Servicio de Administración Tributaria) announced a version 4.0 of the online digital tax receipt (comprobante fiscal digital por internet—CFDI) system. After the effective date, you can't issue vouchers in versions other than 4.0. Accordingly, Business Central updated CFDI feature to align with the new regulations.

The CFDI file is an XML file that contains:

  • Name of issuing company
  • Fiscal address of issuing company
  • Tax scheme of the issuing company
  • Federal tax registration number (RFC) of issuing company
  • RFC of the receiving company
  • Quantity and description of the goods or services
  • Unit price
  • Tax amounts listed by tax type
  • Currency code
  • Customs location, which includes the date and number of the customs document, if the transaction is an import.
  • Digital stamp of the issuing company, which is assigned by the tax authorities (SAT).
  • Digital stamp of an authorized service provider, PAC, that you choose.

Important

You need to submit the electronic invoices to a PAC, which is an authorized service provider appointed by the Mexican tax authorities (SAT). SAT has certified more than one PAC in Mexico, and you must obtain the appropriate information to communicate with the PAC of your choice. By default, Business Central supports integration with Interfactura, but you can use another PAC of your choice.

Get started

Before you can use Business Central for electronic invoicing, you must obtain the appropriate certification, digital stamp, and control numbers from the tax authorities. You must install the certificate on the computer where you generate the CFDI files. For more information, see Set Up Electronic Invoicing. For information about SAT certificates and keys, see the Servicio de Administracíon Tributaria website.

Tip

Use the Set up Mexican CFDI information assisted setup guide to map information about your company and how you use Business Central to the various fields in the CFDI files.

You must also specify the web services that you use to communicate with the PAC to obtain digital stamps. For more information, see Set Up PAC Web Services.

Important

SAT has certified more than one PAC in Mexico, and you must obtain the appropriate information to communicate with the PAC of your choice.

You must also specify information about your company and each of your customers and vendors. For more information, see Set Up Electronic Invoicing.

Send electronic documents

When you post an invoice or credit memo, you can send it to your customer. But first you must obtain a digital stamp from a PAC. Business Central communicates with the PAC through web services to request a stamp, and the document is automatically digitally signed by your company and the PAC.

When you send an electronic invoice or credit memo to your customer, Business Central uses the email address that you have specified on the Company Information page. The document is sent to the email address that you've specified on the Customer Card page for the bill-to customer on the invoice or credit memo. On the General Ledger Setup page, you can also choose to include the documents as PDF files in the email that is sent.

Important

The users who will send electronic invoices must be able to send mail using the Simple Mail Transfer Protocol (SMTP). Depending on the configuration in your company, you may have to grant explicit permissions to each relevant user and computer.

If you also want to print the documents, the documents will include a Quick Response (QR) bar code and other information that identifies the related electronic invoice. This information makes the printed document computer-readable and provides a link between the electronic document and the printed document.

For more information, see Generate Electronic Invoices.

Cancel documents

Sometimes you may have to revert a transaction, such as if you have to change the location of a shipment for some reason. You may also have to send such cancellations as electronic documents.

When you send a cancellation, you must specify a reason for the cancellation, and which document substitutes the canceled document.

The following table provides an overview of the options for the CFDI Cancellation Reason field as of February 2022:

Option Description
01 Voucher issued with errors in relation.
02 Voucher issued with unrelated errors.
03 The operation wasn't carried out.
04 Related nominative operation in a global invoice.

If you choose code 01, then you must also specify the document that substitutes the canceled document in the Substitution Document No. field.

Send a posted sales invoice for cancellation

  1. Open the posted sales invoice that you want to cancel, and then select Cancel.
  2. Select Cancel Request and confirm. This action allows you to send the cancellation request to the PAC service and receive a cancellation ID for the document.
  3. After you receive a successful response from PAC service, the status is updated to Cancel In Progress. The cancellation ID is then taken from the response and updated in the document. This step will update the Date/Time Stamped field.
  4. If the error message appears, the status is updated to Cancel Error. The error details are shown in the Error Code and Error Description fields. This step will update the Date/Time Stamped field.

Send a request to update the status

The SAT authorities need to process and approve the document that you need to cancel. The information about the status should be requested from the PAC service.

Use the Get Response to check and update the cancellation status from the SAT authorities.

Note

The possible responses EnProceso, Rechazado, and Cancelado update the Electronic Document Status field for the next values respectively: Cancel In Progress, Cancel Error, or Canceled.

Manually cancel a posted sales invoice

In some cases, when the document can't be processed properly due to incorrect reason codes, if it cannot be classified by SAT, or some other reason, you can force cancellation manually. Just select the Mark as Canceled action in the menu to manually cancel a posted sales invoice.

E-Invoice status request batch

The user can schedule a batch job to process a document with Electronic Document Status equals Cancel Error, and Cancel In Progress.

Communication component

Technically, the Business Central component for electronic invoicing deploys in a library assembly, Microsoft.Dynamics.NAV.MX.dll, which is included automatically with Business Central. The component handles the communication with the PAC web services and also generates the QR codes that are included in the printed documents.

When you generate an electronic document to request a stamp, Business Central creates an XML document and sends it to the PAC for processing. The original XML document contains the same information as the original string field that is shown on the printed document. The original string includes the following information:

  • Document date
  • Document type
  • Payment terms
  • Name, address, and federal registration number of your company
  • Name, address, and federal registration number of the customer
  • Line amounts and quantities

The PAC returns an XML document that has the original string, but this file also includes a section for the digital stamp. In Business Central, you can export the XML files for documents that have a digital stamp and learn more about the data that goes into each XML element.

See also

Set Up Electronic Invoicing
Set Up PAC Web Services
Generate Electronic Invoices

Find free e-learning modules for Business Central here