Amount of the document level charge

Error BR-36 EN 16931

Each Document level charge (BG-21) shall have a Document level charge amount (BT-99).

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

The charge is missing ram:ActualAmount, which specifies its amount.

What the rule means

The amount states the value of the document level charge and is needed to represent and calculate the invoice.

Affected fields BG-21 BT-99
Please add the charge amount

A document level charge has no amount. Add the amount so the charge is stated on the invoice.

What to do
  1. Add the charge amount in ram:ActualAmount.
  2. Check the AddTradeCharge(...) call and the amount passed to it.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>true</udt:Indicator>
  </ram:ChargeIndicator>
</ram:SpecifiedTradeAllowanceCharge>
✓ Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>true</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:ActualAmount>10.00</ram:ActualAmount>
</ram:SpecifiedTradeAllowanceCharge>
Check in FactoorSharp
  • AbstractTradeAllowanceCharge.ActualAmount (Document level charge: BT-99)
  • FacturXInvoice.AddTradeCharge(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode) (BG-21)
  • FacturXInvoice.GetTradeCharges() (BG-21)
  • AbstractTradeAllowanceCharge (Document level charge: BG-21)
  • AbstractTradeAllowanceCharge.ChargeIndicator (Document level charge: BG-21)
Technical details

The check applies to ram:ChargeIndicator with the value true and requires ram:ActualAmount in the parent ram:SpecifiedTradeAllowanceCharge.

Where the rule applies

The rule applies to each charge in ram:SpecifiedTradeAllowanceCharge within ram:ApplicableHeaderTradeSettlement that is identified as a charge by ram:ChargeIndicator.

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