Element 'ram:AllowanceChargeBasisAmount' may occur at maximum 1 times.
ram:AllowanceChargeBasisAmount occurs more than once within the same ram:ApplicableTradeTax.
ram:AllowanceChargeBasisAmount provides the amount to which an allowance or charge relates. The rule allows no more than one such element per ram:ApplicableTradeTax.
ram:AllowanceChargeBasisAmount appears more than once in an ram:ApplicableTradeTax. You can resolve this by having this element occur no more than once there.
- Locate the affected
ram:ApplicableTradeTax. - Ensure that
ram:AllowanceChargeBasisAmountoccurs no more than once within it. - Regenerate the invoice and validate it again.
<ram:ApplicableTradeTax> <ram:AllowanceChargeBasisAmount>1</ram:AllowanceChargeBasisAmount> <ram:AllowanceChargeBasisAmount>2</ram:AllowanceChargeBasisAmount> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:AllowanceChargeBasisAmount>1</ram:AllowanceChargeBasisAmount> </ram:ApplicableTradeTax>
Technical details
The XPath test counts the direct ram:AllowanceChargeBasisAmount elements and passes when their count is at most one.
The rule applies within ram:ApplicableTradeTax at document level.
rule/@context)assert/@test)