Element 'ram:ActualAmount' must occur exactly 1 times.
The relevant ram:AppliedTradeAllowanceCharge is missing ram:ActualAmount or contains it more than once. The charge must contain exactly one actual amount.
ram:ActualAmount states the actual amount of the charge on the gross price. Without exactly one such element, the amount is not stated unambiguously.
ram:ActualAmount is missing for the charge on the gross price or appears more than once. Exactly one element states the amount unambiguously.
- Find the relevant
ram:AppliedTradeAllowanceChargeon the invoice line’s gross price. - Make sure it contains exactly one
ram:ActualAmount. - Regenerate the invoice and validate it again.
<ram:AppliedTradeAllowanceCharge/>
<ram:AppliedTradeAllowanceCharge> <ram:ActualAmount>1.00</ram:ActualAmount> </ram:AppliedTradeAllowanceCharge>
Technical details
The test counts the direct ram:ActualAmount elements in the selected ram:AppliedTradeAllowanceCharge and requires exactly one.
The rule applies to charges on an invoice line’s gross price marked with true by ram:ChargeIndicator.
rule/@context)assert/@test)