Element 'ram:CalculatedAmount' must occur exactly 1 times.
ram:CalculatedAmount does not occur exactly once in ram:IncludedTradeTax. The element is either missing or occurs more than once.
The VAT entry within the net price must contain exactly one calculated amount.
The calculated amount is missing or entered more than once in the VAT entry for an invoice line’s net price. The entry can be adjusted to contain exactly one ram:CalculatedAmount.
- Find
ram:IncludedTradeTaxwithinram:NetPriceProductTradePrice. - Check that it contains exactly one
ram:CalculatedAmount. - Generate the invoice again and validate it.
<ram:IncludedTradeTax/>
<ram:IncludedTradeTax> <ram:CalculatedAmount>0</ram:CalculatedAmount> </ram:IncludedTradeTax>
Technical details
The test counts the direct ram:CalculatedAmount elements within ram:IncludedTradeTax and requires a count of one.
The rule applies to ram:IncludedTradeTax within the net price of an invoice line.
rule/@context)assert/@test)