Invoice line allowance requires an amount

Error BR-41 EN 16931

Each Invoice line allowance (BG-27) shall have an Invoice line allowance amount (BT-136).

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

The ram:ActualAmount element is missing from the invoice line allowance.

What the rule means

The amount states the value of the allowance on the invoice line.

Affected fields BG-27 BT-136
Please add the amount of the invoice line allowance

No amount is provided for the invoice line allowance. Add the amount in ActualAmount.

What to do
  1. Check the allowance with ChargeIndicator set to false.
  2. Add an ActualAmount element containing the allowance amount.
  3. Check the mapping in AbstractTradeAllowanceCharge.ActualAmount.
  4. 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.00</ram:ActualAmount>
</ram:SpecifiedTradeAllowanceCharge>
Check in FactoorSharp
  • AbstractTradeAllowanceCharge.ActualAmount (Line level allowance: BT-136)
  • TradeLineItem.SpecifiedTradeAllowanceCharges (BG-27)
  • AbstractTradeAllowanceCharge (Line level allowance: BG-27)
  • AbstractTradeAllowanceCharge.ChargeIndicator (Line level allowance: BG-27)
  • TradeAllowance (BG-27)
Technical details

For ram:ChargeIndicator with the value false, the test requires ram:ActualAmount to be present in the parent ram:SpecifiedTradeAllowanceCharge.

Where the rule applies

The rule applies to the amount of an invoice line allowance identified by ram:ChargeIndicator with the value false.

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