Prepare, send and check an NF-e
Follow the NF-e from the invoice to the SEFAZ authorization and check the XML and the DANFE of the authorized note.
Before you start
Have the sales invoice posted, with the NF-e open. The issuing company needs its CNPJ, address, registrations, document series and digital certificate configured, with the homologation or production environment set in the company's Fiscal tab.
Step by step
1. Review the fiscal document
In the Invoicing app, open Customers > Invoices and click the invoice. Click Fiscal Details to open the NF-e, which is Open, with its number set. Compare the recipient, delivery address, operation, items, quantities, NCM, CFOP, taxes, freight and totals with the sale. If a value is wrong, correct the record it comes from.
2. Send the note
With the document reviewed, click Send. Odoo validates the NF-e, transmits it to the SEFAZ and shows the Authorized status in the status bar, with the authorization protocol.
3. Check the XML and the DANFE
Open the XML of the note with the XML view button and check the access key, the number and the total. Generate the DANFE with the PDF view button: it comes out with the same access key. Keep the authorized XML together with the DANFE.
Expected result
The NF-e is Authorized, with its authorization protocol. The XML, the DANFE, the invoice and the delivery refer to the same transaction and the same access key.
If something goes wrong
If the note comes back as Rejected, read the rejection code and reason, correct the indicated data on the invoice or in the record and send it again. The Send button appears when the note is Open: post the invoice first.