Understanding the NFe Process

When you sell goods or services, you must generate a nota fiscal for the transaction. For most transactions, you must send an XML file containing nota fiscal information to the SEFAZ for their approval. The SEFAZ may reject the transmission for formal issues, such as incorrect tags, or for customer issues, such as an irregular tax situation. You send the XML file to SEFAZ through a pre-established Web service.

Note:

The SEFAZ defines the layout of the XML file that you use to report your transactions. There are currently two available versions that you can use: Version 2.0 and 3.1. When generating the XML file and the DANFe, use the correct program version.

For your convenience, JD Edwards EnterpriseOne Localizations for Brazil includes separate menu entries in the Electronic NFe Processes (G76BNFE) menu that associate different program versions to the legal layout versions.

Ensure that you choose the version that complies with current fiscal regulations applicable to your company.

When you process sales orders, generate NF-e files, and use the business services provided by the JD Edwards EnterpriseOne software or use third party software to transmit the NFe XML files, you:

  1. Enter the sales order by using the Sales Order Entry - Header - Brazil (P4210, version ZJDE7002) or the Sales Order Entry - Detail - Brazil (P4210, version ZJDE7001) programs.

  2. Add charges by using the Nota Fiscal Maintenance - Brazil program (P7610B).

    This program lets you add freight, insurance, and other expense information to the nota fiscal.

  3. Generate the nota fiscal by running the Generate Nota Fiscal - Brazil program (R76558B).

    This program assigns a temporary number to the nota fiscal and calculates Brazil tax amounts. You must set the Nota Fiscal Type processing option to generate the appropriate Nota Fiscal (National, End Consumer and so on). The program generates an initial record in the NFe Header table (F76B01TE) and NF-e Status Log table (F76B12TE).

  4. Generate the NF-e XML file by running the NF-e Info Generation program (R76B561), which runs the NF-e Info Generation by Lot UBE program (R76B561L).

    You can run the NF-e Info Generation program from a menu option or from the NF-e Response Process and Contingencies program (P76B12TE).

  5. Submit the NFe XML file to SEFAZ.

    You can use a custom, a third-party program, or the NF-e Transmission program (P76B0021) to submit the file to SEFAZ.

    The NF-e Transmission program enables you to select the file, select the service (submit for processing, cancel, or destroy), and transmit the file to SEFAZ. You can view the status of the submission in the NF-e Transmission program.

  6. Receive the response from SEFAZ.

  7. Upload the final response file from the SEFAZ by running the appropriate version of the NFe XML Response Processing program (R76B525). Use the menu entry for the appropriate XML version.

    The NFe XML Response Processing program retrieves the response XML file from the source folder and updates the JD Edwards EnterpriseOne tables.

    You can also upload the response by using the NF-e Response Process and Contingencies program (P76B12TE), and for unused and cancelled NFes by using the Unused/Cancelled NF-e Numbers program (P76B22TE).

  8. Print the DANF-e document from the NF-e Response Process and Contingencies program (P76B12TE) if you did not set the processing option to automatically print it.

  9. Update journal entries for Brazil taxes by running the Update Sales - Brazil program (R76B803).

  10. Update the sales tables by running the Sales Update program (R42800) if you did not set the processing option in the Update Sales - Brazil program to update the base-software tables.

    Verify that the corresponding version R42800BR is set up in your system.