Element variant 'ram:TaxTotalAmount[@currencyID=../../ram:InvoiceCurrencyCode]' may occur at maximum 1 times.
More than one ram:TaxTotalAmount has an @currencyID matching ram:InvoiceCurrencyCode. There may be at most one such element for the invoice currency.
The VAT amount in the invoice 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 invoice currency is entered more than once. Keep no more than one ram:TaxTotalAmount with the matching @currencyID.
- Find
ram:SpecifiedTradeSettlementHeaderMonetarySummationand itsram:InvoiceCurrencyCode. - Check the
@currencyIDvalues of theram:TaxTotalAmountelements there. - Make sure no more than one element uses the same currency as
ram:InvoiceCurrencyCode. - Regenerate the invoice and validate it again.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode> <ram:TaxTotalAmount currencyID="EUR">19.00</ram:TaxTotalAmount> <ram:TaxTotalAmount currencyID="EUR">19.00</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode> <ram:TaxTotalAmount currencyID="EUR">19.00</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Technical details
Only ram:TaxTotalAmount elements whose @currencyID matches the value of ram:InvoiceCurrencyCode 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:InvoiceCurrencyCode.
rule/@context)assert/@test)