Allowance/charge base amount MUST be provided when allowance/charge percentage is provided.
An allowance or charge contains ram:CalculationPercent but no ram:BasisAmount. The rule requires the base amount for this combination.
The base amount is the amount to which the allowance or charge percentage is applied.
A percentage is provided for an allowance or charge, but its base amount is missing. You can correct the invoice by adding that amount.
- Find the affected
ram:SpecifiedTradeAllowanceCharge. - Add
ram:BasisAmountthere to accompanyram:CalculationPercent. - Generate the invoice again and validate it.
<ram:SpecifiedTradeAllowanceCharge> <ram:CalculationPercent>10</ram:CalculationPercent> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:CalculationPercent>10</ram:CalculationPercent> <ram:BasisAmount>100</ram:BasisAmount> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The rule context selects allowances or charges with ram:CalculationPercent and without ram:BasisAmount; the false() test fails for every entry selected this way.
The rule applies to a ram:SpecifiedTradeAllowanceCharge where ram:CalculationPercent is present and ram:BasisAmount is absent.
rule/@context)assert/@test)