(BRA) About the NF-e process
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2
You can generate a Nota Fiscal eletrônica (NF-e) to register the movement of items and services between two parties.
You can generate an NF-e from any of the following fiscal documents:
Sales orders
Purchase orders for non-taxpayer vendors
Project invoices
Tax fiscal documents
Free text invoices
备注
This topic includes information about features that were added or changed for cumulative update 7 or later for Microsoft Dynamics AX 2012 R2. This information also applies to AX 2012 R3.
You must perform the following tasks before you can generate an NF-e:
Set up web services, rejection codes, and schemas for a domain. For more information, see (BRA) Set up NF-e federal parameters.
Set up a certificate, environment, NF-e version, authority, template, schema validation, automatic printing of Documento Auxiliar da Nota fiscal eletrônica (DANFE) after NF-e approval, and a contingency mode for NF-e for each fiscal establishment. For more information, see (BRA) Set up NF-e parameters for a fiscal establishment and (BRA) Turn on or turn off contingency mode.
Set up web services that are related to a fiscal authority. For more information, see (BRA) Set up NF-e federal parameters.
Set up a fiscal document type for an NF-e. For more information, see (BRA) Set up fiscal document types.
After you generate an NF-e, you can submit the digitally signed NF-e to the Secretaria da Fazenda (SEFAZ) in an XML message. The items can be delivered after the NF-e is electronically approved by SEFAZ. The NF-e process includes the following steps:
The fiscal establishment posts a fiscal document using a fiscal document type that is set up for fiscal document model 55 to generate an NF-e. For more information, see (BRA) Post an NF-e from a sales order, (BRA) Post an NF-e from a purchase order, (BRA) Post an NF-e from a free text invoice, (BRA) Post an NF-e from a project invoice, and (BRA) Post an NF-e from a tax fiscal document.
The NF-e export or import process detects the posted fiscal document for the fiscal document model 55 and generates an XML message in the specified format, which is transmitted to SEFAZ. A separate XML message is generated for each NF-e. For more information, see (BRA) Set up the export or import process for NF-e.
SEFAZ processes the XML message and returns a protocol and status for each NF-e. The returned NF-e status and protocol are then assigned to the NF-e that is used in the NF-e export or import process. The returned status in the return protocol can be Approved, Denied, Discarded, Canceled, Rejected non fixable, or Rejected. This information is used to update the fiscal document status in Microsoft Dynamics AX.
After the status of the NF-e is received from SEFAZ, you can perform the following tasks:
If the NF-e is approved, you can print the DANFE. Alternatively, if you selected the Print DANFE when NF-e is approved check box on the NF-e federal FastTab in the Fiscal establishments form, the DANFE is printed automatically. For more information, see (BRA) Turn on or turn off contingency mode, (BRA) Print the DANFE in contingency mode, and (BRA) Verify the NF-e status and print the DANFE.
备注
In AX 2012 R3 and cumulative update 7 or later for AX 2012 R2: You can generate the DANFE for an approved NF-e as a PDF file. You can then send the DANFE PDF file and the NF-e XML file that are generated for an approved NF-e to a third-party customer or vendor via email. For more information, see (BRA) Set up email parameters and email templates for an NF-e, (BRA) Generate DANFE as PDF files, and (BRA) Generate emails for approved NF-e and attach DANFE PDF files and NF-e XML files to the emails.
If the NF-e is denied, then you must cancel the NF-e. For more information, see (BRA) Cancel a customer NF-e, (BRA) Cancel a vendor NF-e, (BRA) Cancel a project invoice NF-e, and (BRA) Cancel an NF-e that is generated from a tax fiscal document.
If the NF-e is rejected and can be fixed, you can correct the incorrect information, and then click Resend on the NF-e federal tab on the Action Pane in the Fiscal document form to resend the NF-e to SEFAZ.
If the NF-e is rejected and cannot be fixed, you must cancel the discarded NF-e with the discarded number. The NF-e export or import process detects the fiscal document that is posted and marked for discard and then generates an XML message in the specified format for the discarded NF-e number, which is transmitted to SEFAZ. The fiscal document status is set to Discarded.
See also
(BRA) About NF-e schemas and processes
(BRA) NF-e federal parameters (form)
(BRA) Fiscal establishments (form)
(BRA) Fiscal document types (form)
(BRA) Rejected fiscal documents with pending cancellation (list page)
(BRA) Fiscal documents pending an update to contingency mode (list page)