e-Factura validator

All error codes › BR-CO-10

BR-CO-10 – Sum of line amounts is wrong

Erroren16931applies to Romanian e-Factura

What the rule says

Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131).

How to fix it

Set it to the sum of all line net amounts (InvoiceLine/cbc:LineExtensionAmount).

UBL: cac:LegalMonetaryTotal/cbc:LineExtensionAmount

Check your invoice for free

Paste the XML and see every error with the exact fix and the correct amounts.

Where it is checked in the XML

Context: cac:LegalMonetaryTotal

Test (XPath):

(xs:decimal(cbc:LineExtensionAmount) = xs:decimal(round(sum(//(cac:InvoiceLine|cac:CreditNoteLine)/xs:decimal(cbc:LineExtensionAmount)) * 10 * 10) div 100))

Related rules