Provide the document-level allowance amount

Error BR-31 EN 16931

Each Document level allowance (BG-20) shall have a Document level allowance amount (BT-92).

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

The SpecifiedTradeAllowanceCharge identified as an allowance has no ActualAmount. Each document-level allowance must have an amount.

What the rule means

A ChargeIndicator value of false identifies an allowance. The amount is required to state the value of that document-level allowance.

Affected fields BG-20 BT-92
Please add the document-level allowance amount

A document-level allowance is present, but its amount is missing. Add the allowance amount.

What to do
  1. Provide the amount through ActualAmount or review the call to AddTradeAllowance(...).
  2. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
</ram:SpecifiedTradeAllowanceCharge>
✓ Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:ActualAmount>10</ram:ActualAmount>
</ram:SpecifiedTradeAllowanceCharge>
Check in FactoorSharp
  • AbstractTradeAllowanceCharge.ActualAmount (Document level allowance: BT-92)
  • FacturXInvoice.AddTradeAllowance(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode) (BG-20)
  • FacturXInvoice.GetTradeAllowances() (BG-20)
  • FacturXInvoice.TradeAllowanceCharges (BG-20)
  • AbstractTradeAllowanceCharge (Document level allowance: BG-20)
Technical details

For ChargeIndicator with udt:Indicator set to false, the test checks whether the parent SpecifiedTradeAllowanceCharge contains an ActualAmount.

Where the rule applies

The rule applies to a document-level SpecifiedTradeAllowanceCharge whose ChargeIndicator has the value false, identifying an allowance.

Context (rule/@context)
//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='false']
Test expression (assert/@test)
(../ram:ActualAmount)