What does BR-12 mean?
The invoice must state the sum of all Invoice line net amounts. It is the starting point of the document totals.
Common causes of BR-12
- The element 'ram:LineTotalAmount' is missing from the document totals.
- The totalling logic in the issuing system does not write the line sum into the document.
- The sum was left out on an invoice without lines.
How to fix BR-12
- Find the faulty spot in the XML. Open the XML of the invoice and go to field BT-106 along this XPath:
//ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:LineTotalAmount - Apply the fix. Add the Sum of Invoice line net amount (BT-106) in the element 'ram:LineTotalAmount' of the document totals. The value is the sum of all Invoice line net amounts (BT-131).
- Validate again. Save the file and validate it again to check that BR-12 is no longer reported.
Add the Sum of Invoice line net amount (BT-106) in the element 'ram:LineTotalAmount' of the document totals. The value is the sum of all Invoice line net amounts (BT-131).
//ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:LineTotalAmountBefore / after: the XML example
This is the spot in question before and after the fix (Cross Industry Invoice, ZUGFeRD/Factur-X).
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:TaxBasisTotalAmount>100.00</ram:TaxBasisTotalAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:LineTotalAmount>100.00</ram:LineTotalAmount>
<ram:TaxBasisTotalAmount>100.00</ram:TaxBasisTotalAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Frequent questions about BR-12
How is BT-106 calculated?
What is the difference from BT-109?
Related error codes
Check BR-12 automatically
Instead of digging through the XML by hand you can validate your ZUGFeRD or XRechnung file online – upload the PDF or the XML and you get every error with rule ID, affected field, fix and XPath, as a readable report or as JSON through the API.