Maximum two decimal places for the invoice line net total

Error BR-DEC-09 EN 16931

The allowed maximum number of decimals for the Sum of Invoice line net amount (BT-106) 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 in LineTotalAmount has more than two decimal places.

What the rule means

The invoice line net total is stated with no more than two decimal places. This ensures a consistent decimal format for this monetary amount.

Affected fields BT-106
Please state the invoice line net total with no more than two decimal places

The invoice line net total has more than two decimal places. You can adjust the value to the permitted decimal format.

What to do
  1. Check the value of LineTotalAmount.
  2. Use no more than two decimal places.
  3. Check the LineTotalAmount property.
  4. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:LineTotalAmount>123.456</ram:LineTotalAmount>
✓ Correct
<ram:LineTotalAmount>123.46</ram:LineTotalAmount>
Check in FactoorSharp
  • FacturXInvoice.LineTotalAmount (BT-106)
Technical details

The XPath check counts the characters after the decimal point in LineTotalAmount and allows at most two.

Where the rule applies

The rule applies to LineTotalAmount in SpecifiedTradeSettlementHeaderMonetarySummation.

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