Element variant 'ram:AppliedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator="false"]' may occur at maximum 1 times.
More than one ram:AppliedTradeAllowanceCharge element with ram:ChargeIndicator equal to false is present under ram:GrossPriceProductTradePrice. This represents multiple allowances on this gross price.
The rule limits the number of ram:AppliedTradeAllowanceCharge elements marked as an allowance on an invoice line’s gross price to one.
Several allowances are entered on an invoice line’s gross price. You can limit the information here to one allowance.
- Locate
ram:GrossPriceProductTradePricefor the affected invoice line. - Count the
ram:AppliedTradeAllowanceChargeelements whoseram:ChargeIndicatorhas the valuefalse, and keep no more than one. - Regenerate the invoice and validate it again.
<ram:GrossPriceProductTradePrice> <ram:AppliedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> </ram:AppliedTradeAllowanceCharge> <ram:AppliedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> </ram:AppliedTradeAllowanceCharge> </ram:GrossPriceProductTradePrice>
<ram:GrossPriceProductTradePrice> <ram:AppliedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> </ram:AppliedTradeAllowanceCharge> </ram:GrossPriceProductTradePrice>
Technical details
The check counts ram:AppliedTradeAllowanceCharge elements with ram:ChargeIndicator/udt:Indicator="false" under ram:GrossPriceProductTradePrice; the count must not exceed one.
The rule applies to ram:GrossPriceProductTradePrice of an invoice line. It concerns child ram:AppliedTradeAllowanceCharge elements whose ram:ChargeIndicator has the value false.
rule/@context)assert/@test)