Skip to main content
Pending validationOdoo 20.0Community and Enterprise

The electronic invoice refuses the line amounts

Symptom​

On an issued invoice, you clicked Send to FE-AP and the Invalid Operation window talks about a line amount.

Message​

With a line with quantity 1,2345:

“The electronic invoice cannot be generated: the value 1,2345 in "Quantity" has more than 3 decimal places, which the public-sector electronic invoice does not accept. This invoice is already issued and signed, so it cannot be changed: issue a credit note (“Credit note” button on the invoice) and a new invoice with the value rounded to 3 decimal places.”

With a zero-quantity line, the second line of the invoice:

“The electronic invoice cannot be generated:

  • Line 2: “Quantity” is missing (or is zero). Fill in the line's “Quantity” field; a line without a quantity cannot go out as an electronic invoice. (IBR-022)”

Verified causes​

  • Quantity with more than 3 decimal places. The electronic invoice accepts up to 3 places. With the demo's 2-place precision, this refusal does not happen: it was only triggered after raising the quantity precision to 4 places.
  • Zero quantity. Issuing does not refuse it. Before issuing, the draft warns: “Line(s) Embalagem have zero quantity. You can issue the document, but the electronic invoice (FE-AP, Peppol, EDI) refuses a line without a quantity when it is sent, and a signed document can no longer be changed (only a credit note and a new invoice correct it). If the quantity is a mistake, fill it in before issuing.”

These cases were tested and do not cause a refusal on the lines:

  • a line with zero price;
  • a line with a 100 % discount;
  • a note on the invoice.

Before getting here, issuing refuses a line with a negative amount and a VAT rate different from the one in force. So these two cases do not appear at this step. The negative-amount refusal says: “Line "…" of document "Rascunho de fatura" has a negative value in the "Unit Price" field. A certified document has no negative lines. To reduce a price use the line's discount field (between 0 and 100 %); to return goods or cancel part of the document issue a credit note for the document. Enter a positive value.”

Not triggered on screen, despite the tests above: “The electronic invoice cannot be generated: "..." in ... is not a number. Correct the value on the invoice line.” and “The electronic invoice of "..." cannot be generated: its lines do not match the document lines.” If one of them appears, handle it as in When to contact support.

What to check​

  1. The Quantity column of every invoice line.
  2. Which line the message names. “Line 2” is the second line.
  3. Whether the invoice has already been issued. On an issued document, the screen says “Document issued and signed: it can no longer be changed.”

How to fix it​

As the message says, an issued invoice can no longer be changed. What you do is:

  1. Issue a credit note for the invoice: How to issue a credit note.
  2. Issue a new invoice, with the quantity to at most 3 decimal places and no zero-quantity lines.
  3. Click Send to FE-AP on the new invoice.

On the next invoices, check the quantities before you click Confirm. The draft warns about zero-quantity lines.

Expected result​

The new invoice shows the state Accepted and the sentence “Sent to the FE-AP portal and accepted on …”. Sending to the FE-AP is simulated here: nothing leaves the computer, even if the state says Accepted. See The electronic invoice cannot be generated.

When to contact support​

If the message about a value that is not a number or the one about lines that do not match appears, or if the refusal continues with correct quantities, ask for support.

Information to send​

  • The invoice number.
  • The quantity, price and discount of the line named.
  • The full text of the message.
Versions: Odoo 20.0Community and Enterprisefiscaldoo 20.0 (master 0289754a8)ID DOC-0374
Was this page helpful?