Use no more than two decimal places for the amount without VAT

Error BR-DEC-12 EN 16931

The allowed maximum number of decimals for the Invoice total amount without VAT (BT-109) is 2.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

ram:TaxBasisTotalAmount contains more than two characters after the decimal point. The amount without VAT therefore exceeds the permitted number of decimal places.

What the rule means

The invoice total amount without VAT may have no more than two decimal places. This keeps its stated precision within the limit set for this amount.

Affected fields BT-109
Please limit the decimal places of the amount without VAT

ram:TaxBasisTotalAmount has more than two decimal places. Adjust the value so that no more than two digits follow the decimal point.

What to do
  1. Check the value of ram:TaxBasisTotalAmount.
  2. Limit the decimal places to no more than two.
  3. Check the value of TaxBasisAmount.
  4. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
  <ram:TaxBasisTotalAmount>100.123</ram:TaxBasisTotalAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
✓ Correct
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
  <ram:TaxBasisTotalAmount>100.12</ram:TaxBasisTotalAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Check in FactoorSharp
  • FacturXInvoice.TaxBasisAmount (BT-109)
Technical details

The test counts the characters after the first decimal point in ram:TaxBasisTotalAmount and requires a length of no more than two.

Where the rule applies

The rule checks ram:TaxBasisTotalAmount in the totals of ram:SpecifiedTradeSettlementHeaderMonetarySummation.

Context (rule/@context)
//ram:SpecifiedTradeSettlementHeaderMonetarySummation
Test expression (assert/@test)
string-length(substring-after(ram:TaxBasisTotalAmount,'.'))<=2