Element 'ram:LineTotalBasisAmount' may occur at maximum 1 times.
ram:LineTotalBasisAmount occurs more than once within the same ram:ApplicableTradeTax.
ram:LineTotalBasisAmount provides an amount as a basis for the VAT breakdown. The rule allows no more than one such element per ram:ApplicableTradeTax.
ram:LineTotalBasisAmount 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:LineTotalBasisAmountoccurs no more than once within it. - Regenerate the invoice and validate it again.
<ram:ApplicableTradeTax> <ram:LineTotalBasisAmount>1</ram:LineTotalBasisAmount> <ram:LineTotalBasisAmount>2</ram:LineTotalBasisAmount> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:LineTotalBasisAmount>1</ram:LineTotalBasisAmount> </ram:ApplicableTradeTax>
Technical details
The XPath test counts the direct ram:LineTotalBasisAmount elements and passes when their count is at most one.
The rule applies within ram:ApplicableTradeTax at document level.
rule/@context)assert/@test)