Skip to main content

BR-12 Sum of Invoice line net amount is required

An invoice shall have the Sum of Invoice line net amount (BT-106), the total of all line net amounts before document allowances, charges and VAT.

Problem Description

An invoice shall have the Sum of Invoice line net amount (BT-106), the total of all line net amounts before document allowances, charges and VAT.

ERROR

XRechnung 3.0

Context and Significance

This is a core EN16931 rule; BT-106 is the starting point of the document total calculation chain, so it must be present.

Solution

Add cac:LegalMonetaryTotal/cbc:LineExtensionAmount equal to the sum of every line’s BT-131 net amount.

Quick actions

Valid Examples

Use these points as the practical checks for this section.

  • BT-106 = 1000.00 — equals the sum of all line net amounts

Invalid Examples

Use these points as the practical checks for this section.

  • cac:LegalMonetaryTotal has no cbc:LineExtensionAmount element

Code Examples

Valid XML
<cac:LegalMonetaryTotal>
  <cbc:LineExtensionAmount currencyID="EUR">1000.00</cbc:LineExtensionAmount>
  <cbc:TaxExclusiveAmount currencyID="EUR">1000.00</cbc:TaxExclusiveAmount>
</cac:LegalMonetaryTotal>
Invalid XML
<cac:LegalMonetaryTotal>
  <cbc:TaxExclusiveAmount currencyID="EUR">1000.00</cbc:TaxExclusiveAmount>
  <cbc:PayableAmount currencyID="EUR">1190.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>

Affected Fields

Validation Tools