Element variant 'ram:TaxTotalAmount[@currencyID=../../ram:TaxCurrencyCode]' may occur at maximum 1 times.
More than one ram:TaxTotalAmount has an @currencyID matching ram:TaxCurrencyCode. There may be at most one such element for the tax currency.
The VAT amount in the tax currency must not be stated more than once in the settlement totals. This keeps the tax amount for that currency unambiguous.
The VAT amount in the tax currency is entered more than once. Keep no more than one ram:TaxTotalAmount with the matching @currencyID.
- Find
ram:SpecifiedTradeSettlementHeaderMonetarySummationand itsram:TaxCurrencyCode. - Check the
@currencyIDvalues of theram:TaxTotalAmountelements there. - Make sure no more than one element uses the same currency as
ram:TaxCurrencyCode. - Regenerate the invoice and validate it again.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxCurrencyCode>EUR</ram:TaxCurrencyCode> <ram:TaxTotalAmount currencyID="EUR">19.00</ram:TaxTotalAmount> <ram:TaxTotalAmount currencyID="EUR">19.00</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxCurrencyCode>EUR</ram:TaxCurrencyCode> <ram:TaxTotalAmount currencyID="EUR">19.00</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Technical details
Only ram:TaxTotalAmount elements whose @currencyID matches the value of ram:TaxCurrencyCode are counted. The permitted count is zero or one.
The rule applies to the monetary settlement totals in ram:SpecifiedTradeSettlementHeaderMonetarySummation and concerns ram:TaxTotalAmount whose @currencyID matches ram:TaxCurrencyCode.
rule/@context)assert/@test)