Element 'ram:CalculatedAmount' may occur at maximum 1 times.
ram:CalculatedAmount occurs more than once within ram:ApplicableTradeTax. This element may occur no more than once.
The calculated tax amount belongs to the invoice line’s tax information. Multiple amount elements of the same kind within one tax entry make it unclear which amount applies.
The tax information for the invoice line contains ram:CalculatedAmount more than once. You can resolve this by having this element appear only once there.
- Locate the affected
ram:ApplicableTradeTaxon the invoice line. - Check whether
ram:CalculatedAmountoccurs more than once there. - Ensure that this element occurs there no more than once.
- Generate the invoice again and validate it once more.
<ram:ApplicableTradeTax> <ram:CalculatedAmount>10</ram:CalculatedAmount> <ram:CalculatedAmount>10</ram:CalculatedAmount> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CalculatedAmount>10</ram:CalculatedAmount> </ram:ApplicableTradeTax>
Technical details
The check counts the direct ram:CalculatedAmount elements under ram:ApplicableTradeTax and permits at most one.
The rule applies to ram:CalculatedAmount within ram:ApplicableTradeTax on an invoice line.
rule/@context)assert/@test)