Each Invoice line allowance (BG-27) shall have an Invoice line allowance amount (BT-136).
ram:ActualAmount is missing for the invoice line allowance. Each such allowance must have an amount.
The amount states the value of the allowance on the invoice line.
No amount is provided for the invoice line allowance. Add the missing amount.
- Add
ram:ActualAmountto the allowance underram:SpecifiedTradeAllowanceCharge. - Set the value through
AbstractTradeAllowanceCharge.ActualAmount. - Generate the invoice again and validate it once more.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:ActualAmount>10.00</ram:ActualAmount> </ram:SpecifiedTradeAllowanceCharge>
AbstractTradeAllowanceCharge.ActualAmount(Line level allowance: BT-136)TradeLineItem.SpecifiedTradeAllowanceCharges(BG-27)AbstractTradeAllowanceCharge(Line level allowance: BG-27)AbstractTradeAllowanceCharge.ChargeIndicator(Line level allowance: BG-27)
Technical details
For the allowance identified by udt:Indicator with false, the test checks whether the sibling ram:ActualAmount element is present.
The rule applies to an invoice line allowance identified by ram:ChargeIndicator with the value false.
rule/@context)assert/@test)