Each Invoice line allowance (BG-27) shall have an Invoice line allowance reason (BT-139) or an Invoice line allowance reason code (BT-140).
The allowance has neither ram:Reason nor ram:ReasonCode.
An invoice line allowance must be explained by a reason or a reason code.
No reason is provided for the invoice line allowance. You can add either a reason text or a reason code.
- Check the allowance with
ChargeIndicatorset tofalse. - Add either
ReasonorReasonCode. - Check the mapping through
AbstractTradeAllowanceCharge.ReasonorTradeAllowance.ReasonCode. - 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:Reason>...</ram:Reason> </ram:SpecifiedTradeAllowanceCharge>
AllowanceReasonCodes(Line level allowance: BT-140)TradeAllowance.ReasonCode(Line level allowance: BT-140)AbstractTradeAllowanceCharge.Reason(Line level allowance: BT-139)TradeLineItem.SpecifiedTradeAllowanceCharges(BG-27)AbstractTradeAllowanceCharge(Line level allowance: BG-27)
Technical details
For ram:ChargeIndicator with the value false, the test requires ram:Reason or ram:ReasonCode in the parent ram:SpecifiedTradeAllowanceCharge.
The rule applies to an invoice line allowance identified by ram:ChargeIndicator with the value false.
rule/@context)assert/@test)