Decimal places in the allowance amount

Error BR-DEC-01 EN 16931

The allowed maximum number of decimals for the Document level allowance amount (BT-92) is 2.

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

The amount in ram:ActualAmount has more than two digits after the decimal separator.

What the rule means

The document level allowance amount may have no more than two decimal places, so the stated monetary amount uses the permitted precision.

Affected fields BT-92
Please limit the decimal places in the allowance amount

The allowance amount has more than two decimal places. Adjusting the amount will resolve this formatting issue.

What to do
  1. Check the value in the allowance’s ram:ActualAmount.
  2. Limit the amount to no more than two decimal places.
  3. Check the ActualAmount property.
  4. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:ActualAmount>10.123</ram:ActualAmount>
</ram:SpecifiedTradeAllowanceCharge>
✓ Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:ActualAmount>10.12</ram:ActualAmount>
</ram:SpecifiedTradeAllowanceCharge>
Check in FactoorSharp
  • AbstractTradeAllowanceCharge.ActualAmount (Document level allowance: BT-92)
Technical details

The check counts the characters after the decimal point in the first ram:ActualAmount of the parent ram:SpecifiedTradeAllowanceCharge and allows no more than two.

Where the rule applies

The rule applies to ram:ActualAmount of an allowance in ram:SpecifiedTradeAllowanceCharge within ram:ApplicableHeaderTradeSettlement.

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