Each Invoice line allowance (BG-27) shall have an Invoice line allowance amount (BT-136).
The ram:ActualAmount element is missing from the invoice line allowance.
The amount states the value of the allowance on the invoice line.
No amount is provided for the invoice line allowance. Add the amount in ActualAmount.
- Check the allowance with
ChargeIndicatorset tofalse. - Add an
ActualAmountelement containing the allowance amount. - Check the mapping in
AbstractTradeAllowanceCharge.ActualAmount. - Generate the invoice again and validate it.
<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)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.
The rule applies to the amount of an invoice line allowance identified by ram:ChargeIndicator with the value false.
rule/@context)assert/@test)