Amount of the invoice line charge

Error BR-43 EN 16931

Each Invoice line charge (BG-28) shall have an Invoice line charge amount (BT-141).

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 ActualAmount. As a result, no amount is provided for the invoice line charge.

What the rule means

Every invoice line charge must include an amount. This amount states the value of the charge.

Affected fields BG-28 BT-141
Please add the amount of the invoice line charge

No amount is provided for an invoice line charge. You can add the missing amount to the charge.

What to do
  1. Add the amount through AbstractTradeAllowanceCharge.ActualAmount.
  2. Check that the amount belongs to the charge in the appropriate SpecifiedTradeAllowanceCharge.
  3. Generate the invoice again and validate it once more.
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>12.34</ram:ActualAmount>
</ram:SpecifiedTradeAllowanceCharge>
Check in FactoorSharp
  • AbstractTradeAllowanceCharge.ActualAmount (Line level charge: BT-141)
  • TradeLineItem.SpecifiedTradeAllowanceCharges (BG-28)
  • AbstractTradeAllowanceCharge (Line level charge: BG-28)
  • AbstractTradeAllowanceCharge.ChargeIndicator (Line level charge: BG-28)
  • TradeCharge (BG-28)
Technical details

The check runs for ChargeIndicator with the value true and passes if ActualAmount is present in the parent SpecifiedTradeAllowanceCharge.

Where the rule applies

The rule applies to a charge in SpecifiedTradeAllowanceCharge within an invoice line's settlement data. The ChargeIndicator element identifies the entry as a charge.

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