Allowance/charge ChargeIndicator value MUST equal 'true' or 'false'
The normalized text value of ram:ChargeIndicator/udt:Indicator is neither true nor false.
The indicator specifies whether the applied entry is an allowance or a charge.
The applied allowance or charge indicator does not contain either of the accepted values. You can resolve this by adjusting the indicator value.
- Find the affected
ram:AppliedTradeAllowanceCharge. - Set
ram:ChargeIndicator/udt:Indicatortotrueorfalse. - Generate the invoice again and validate it.
<ram:AppliedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>yes</udt:Indicator> </ram:ChargeIndicator> </ram:AppliedTradeAllowanceCharge>
<ram:AppliedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> </ram:AppliedTradeAllowanceCharge>
After leading and trailing spaces are removed, only true and false are accepted.
Technical details
After normalize-space, the text of ram:ChargeIndicator/udt:Indicator must be exactly true or false.
The rule applies to a ram:AppliedTradeAllowanceCharge.
rule/@context)assert/@test)