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 entry is an allowance or a charge.
The 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:SpecifiedTradeAllowanceCharge. - Set
ram:ChargeIndicator/udt:Indicatortotrueorfalse. - Generate the invoice again and validate it.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>yes</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
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:SpecifiedTradeAllowanceCharge.
rule/@context)assert/@test)