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