[CII-SR-473] - ActualAmount should exist maximum once
A ram:SpecifiedTradeAllowanceCharge contains more than one ram:ActualAmount element. The test limits the count to at most one; it does not require the element to be present.
The rule limits the number of actual amounts within an allowance or charge to one.
Multiple actual amounts are entered for an allowance or charge. Keep no more than one entry; this test does not require an actual amount.
- Look for repeated
ram:ActualAmountelements in the affected allowance or charge. - Remove any extra
ram:ActualAmountelements. - Generate the invoice again and validate it again.
<ram:SpecifiedTradeAllowanceCharge> <ram:ActualAmount>10</ram:ActualAmount> <ram:ActualAmount>5</ram:ActualAmount> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ActualAmount>10</ram:ActualAmount> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The test counts ram:ActualAmount elements within ram:SpecifiedTradeAllowanceCharge and allows at most one.
The rule applies within each document-level ram:SpecifiedTradeAllowanceCharge.
rule/@context)assert/@test)