BR-DEC-12 EN 16931 Math & Tax EU FATAL REJECTION
BR-DEC-12 — Maximum Two Decimal Places on Monetary Totals
Rule Definition & Compliance Impact
The BR-DEC rule family (specifically BR-DEC-12 on BT-109 and its sibling rules on BT-106..BT-115 and BT-131) restricts all invoice monetary summation amounts to a maximum of 2 decimal digits.
Common ERP & Exporter Root Causes
Usage-based SaaS, energy, and telecom billing systems serialize raw float values (e.g. 125.505 or 100.1000) directly into XML monetary totals instead of keeping high precision strictly on Item Net Price (BT-146) and Quantity (BT-129).
How to Fix This Violation
Format all monetary totals (BT-106 through BT-118, BT-131) with at most 2 fractional digits (e.g. toFixed(2)). Keep 4–6 decimal precision exclusively on PriceAmount (BT-146) and InvoicedQuantity (BT-129).
Non-Compliant vs. Compliant Payload Comparison
UN/CEFACT CII D16B (Factur-X / ZUGFeRD)
REJECTED
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<!-- 3 decimal places on header monetary totals violate BR-DEC-* -->
<ram:TaxBasisTotalAmount>125.505</ram:TaxBasisTotalAmount>
<ram:TaxTotalAmount currencyID="EUR">23.846</ram:TaxTotalAmount>
<ram:GrandTotalAmount>149.351</ram:GrandTotalAmount>
<ram:DuePayableAmount>149.351</ram:DuePayableAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation> COMPLIANT
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<!-- Unit prices (BT-146) may have >2 decimals, but monetary totals max 2 -->
<ram:TaxBasisTotalAmount>125.51</ram:TaxBasisTotalAmount>
<ram:TaxTotalAmount currencyID="EUR">23.85</ram:TaxTotalAmount>
<ram:GrandTotalAmount>149.36</ram:GrandTotalAmount>
<ram:DuePayableAmount>149.36</ram:DuePayableAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>OASIS UBL 2.1 (XRechnung / Peppol / RO e-Factura)
REJECTED
<cac:LegalMonetaryTotal>
<cbc:TaxExclusiveAmount currencyID="EUR">125.505</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">149.351</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="EUR">149.351</cbc:PayableAmount>
</cac:LegalMonetaryTotal> COMPLIANT
<cac:LegalMonetaryTotal>
<cbc:TaxExclusiveAmount currencyID="EUR">125.51</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">149.36</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="EUR">149.36</cbc:PayableAmount>
</cac:LegalMonetaryTotal>