Element 'ram:LineTotalBasisAmount' may occur at maximum 1 times.
ram:LineTotalBasisAmount may occur no more than once in ram:ApplicableTradeTax. The rule fails if the element occurs more than once.
ram:LineTotalBasisAmount identifies the total of the invoice lines as part of the VAT breakdown. Multiple occurrences would repeat this value.
ram:LineTotalBasisAmount appears more than once in the VAT breakdown. You can resolve this by removing duplicate occurrences.
- Locate the relevant
ram:ApplicableTradeTax. - Check how many
ram:LineTotalBasisAmountelements it contains. - Remove any extra occurrences so that no more than one remains.
- Generate the invoice again and validate it once more.
Technical details
The XPath test count(ram:LineTotalBasisAmount)<=1 allows zero or one direct child element and disallows multiple occurrences.
The rule applies to each ram:ApplicableTradeTax in the document-level VAT breakdown.
rule/@context)assert/@test)