Each Invoice line allowance (BG-27) shall contain an Invoice line allowance reason (BT-139) or an Invoice line allowance reason code (BT-140), or both.
Both Reason and ReasonCode are missing from the allowance. As a result, the invoice line contains neither a textual explanation nor a reason code for the allowance.
An invoice line allowance must be traceable through a reason, a reason code, or both. This information explains why the allowance is granted.
The reason for an invoice line allowance is missing. You can provide it as text, as a reason code, or with both entries.
- Add
AbstractTradeAllowanceCharge.ReasonorTradeAllowance.ReasonCodefor the allowance. - Check that the entry is in the appropriate
SpecifiedTradeAllowanceChargefor the invoice line. - 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:Reason>Remise commerciale</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
The check runs for ChargeIndicator with the value false and passes if Reason or ReasonCode is present in the parent SpecifiedTradeAllowanceCharge.
The rule applies to an allowance in SpecifiedTradeAllowanceCharge within an invoice line's settlement data. The ChargeIndicator element identifies the entry as an allowance.
rule/@context)assert/@test)