Element 'ram:CalculatedAmount' must occur exactly 1 times.
ram:CalculatedAmount is missing from ram:ApplicableTradeTax or occurs more than once. It must occur exactly once.
ram:CalculatedAmount contains the calculated tax amount for the corresponding VAT breakdown entry.
The VAT breakdown entry does not contain ram:CalculatedAmount exactly once. You can resolve this by including the element once in the entry.
- Find the relevant
ram:ApplicableTradeTax. - Check that
ram:CalculatedAmountoccurs exactly once in it. - Regenerate the invoice and check it again.
<ram:ApplicableTradeTax/>
<ram:ApplicableTradeTax> <ram:CalculatedAmount>0</ram:CalculatedAmount> </ram:ApplicableTradeTax>
Technical details
The test counts the direct ram:CalculatedAmount elements within ram:ApplicableTradeTax and requires a count of 1.
The rule applies to each ram:ApplicableTradeTax element in the document-level VAT breakdown.
rule/@context)assert/@test)