Maximum decimal places for the rounding amount

Error BR-DEC-17 EN 16931

The allowed maximum number of decimals for the Rounding amount (BT-114) is 2.

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

The value of ram:RoundingAmount contains more than two decimal places. The rule counts the characters after a decimal point and allows no more than two.

What the rule means

The rounding amount (BT-114) is a monetary amount limited to two decimal places.

Affected fields BT-114
Please enter the rounding amount with no more than two decimal places

The rounding amount contains more than two decimal places. You can adjust the value in the rounding amount field.

What to do
  1. Check the value of ram:RoundingAmount.
  2. Reduce or round the amount to no more than two decimal places.
  3. Set the value using FacturXInvoice.RoundingAmount.
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:RoundingAmount>1.235</ram:RoundingAmount>
✓ Correct
<ram:RoundingAmount>1.23</ram:RoundingAmount>
Check in FactoorSharp
  • FacturXInvoice.RoundingAmount (BT-114)
Technical details

The XPath checks that the substring after . in ram:RoundingAmount is no longer than two characters.

Where the rule applies

The rule applies to the rounding amount ram:RoundingAmount within the settlement monetary totals.

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