Charge on price level is NOT allowed. Only value 'false' allowed.
If an ram:ActualAmount is provided for ram:AppliedTradeAllowanceCharge, the value of ram:ChargeIndicator/udt:Indicator must not be true. The test allows only false at this location.
A charge in this form is not allowed at price level; the checked indicator may identify only an allowance. This prevents an amount at price level from being stated as a charge.
An amount in ram:AppliedTradeAllowanceCharge at price level is marked as a charge. Only an allowance indicator is allowed at this location.
- Locate
ram:AppliedTradeAllowanceChargewithinram:GrossPriceProductTradePrice. - Check
ram:ChargeIndicator/udt:Indicatorfor the provided amount. - Make sure the indicator has the value
false. - Generate the invoice again and validate it.
<ram:GrossPriceProductTradePrice> <ram:AppliedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:ActualAmount>5</ram:ActualAmount> </ram:AppliedTradeAllowanceCharge> </ram:GrossPriceProductTradePrice>
<ram:GrossPriceProductTradePrice> <ram:AppliedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:ActualAmount>5</ram:ActualAmount> </ram:AppliedTradeAllowanceCharge> </ram:GrossPriceProductTradePrice>
Technical details
The test passes when no ram:ActualAmount is present or when ram:ChargeIndicator/udt:Indicator has the value false.
The rule applies to ram:AppliedTradeAllowanceCharge within ram:GrossPriceProductTradePrice on an invoice line.
rule/@context)assert/@test)