Decimal places in the allowance base amount

Error BR-DEC-25 EN 16931

The allowed maximum number of decimals for the Invoice line allowance base amount (BT-137) is 2.

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

The allowance base amount has more than two digits after the decimal separator. This exceeds the permitted number of decimal places for an invoice line allowance base amount.

What the rule means

The base amount of an allowance may be expressed with no more than two decimal places. This limit ensures a consistent representation of the monetary amount.

Affected fields BT-137
Please enter the allowance base amount with no more than two decimal places

The invoice line allowance base amount has more than two decimal places. You can adjust the base amount here to the permitted precision.

What to do
  1. Check the value of AbstractTradeAllowanceCharge.BasisAmount.
  2. Enter the allowance base amount with no more than two decimal places.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:BasisAmount>12.345</ram:BasisAmount>
</ram:SpecifiedTradeAllowanceCharge>
✓ Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:BasisAmount>12.34</ram:BasisAmount>
</ram:SpecifiedTradeAllowanceCharge>
Check in FactoorSharp
  • AbstractTradeAllowanceCharge.BasisAmount (Line level allowance: BT-137)
Technical details

The check counts the characters after the period in BasisAmount. A result of no more than two characters satisfies the rule.

Where the rule applies

The rule applies to the BasisAmount of an allowance in SpecifiedTradeAllowanceCharge within an invoice line's settlement data.

Context (rule/@context)
//ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'false']
Test expression (assert/@test)
string-length(substring-after(../ram:BasisAmount,'.'))<=2