Element 'ram:AppliedAmount' must occur exactly 1 times.
ram:AppliedAmount is missing from ram:SpecifiedLogisticsServiceCharge, or the element occurs more than once.
ram:AppliedAmount contains the amount of the specified logistics service. Exactly one element ensures that this amount is stated unambiguously.
The specified logistics service is missing its amount, or the amount is included more than once. You can resolve this by stating the amount just once.
- Find the relevant
ram:SpecifiedLogisticsServiceCharge. - Add exactly one
ram:AppliedAmountinside it and remove any duplicates. - Generate the invoice again and validate it again.
<ram:SpecifiedLogisticsServiceCharge/>
<ram:SpecifiedLogisticsServiceCharge> <ram:AppliedAmount>0.00</ram:AppliedAmount> </ram:SpecifiedLogisticsServiceCharge>
Technical details
The test uses count(ram:AppliedAmount)=1 to check that the current ram:SpecifiedLogisticsServiceCharge contains exactly one ram:AppliedAmount element.
The rule applies to ram:SpecifiedLogisticsServiceCharge in the document-level settlement information.
rule/@context)assert/@test)