Element 'ram:AllowanceChargeBasisAmount' may occur at maximum 1 times.
ram:AllowanceChargeBasisAmount may occur no more than once in ram:ApplicableTradeTax. The rule fails if the element occurs more than once.
ram:AllowanceChargeBasisAmount contains the total of allowances and charges taken into account in the relevant VAT breakdown. Multiple occurrences would state this basis more than once.
ram:AllowanceChargeBasisAmount 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:AllowanceChargeBasisAmountelements 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:AllowanceChargeBasisAmount)<=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)