Element variant 'ram:TaxTotalAmount[@currencyID=../../ram:InvoiceCurrencyCode]' may occur at maximum 1 times.
ram:SpecifiedTradeSettlementHeaderMonetarySummation contains more than one ram:TaxTotalAmount whose currencyID matches the value of ram:InvoiceCurrencyCode.
The tax total in the invoice currency may occur at most once in the invoice totals. This keeps the total tax amount for that currency unambiguous.
The tax total with the currency code from ram:InvoiceCurrencyCode appears more than once in the invoice totals. Remove the duplicate so the amount is unambiguous.
- Compare the
currencyIDvalues of theram:TaxTotalAmountelements withram:InvoiceCurrencyCode. - Make sure no more than one
ram:TaxTotalAmountuses that currency code. - Regenerate the invoice and validate it again.
<ram:ApplicableHeaderTradeSettlement> <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode> <ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxTotalAmount currencyID="EUR">1</ram:TaxTotalAmount> <ram:TaxTotalAmount currencyID="EUR">1</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation> </ram:ApplicableHeaderTradeSettlement>
<ram:ApplicableHeaderTradeSettlement> <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode> <ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxTotalAmount currencyID="EUR">1</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation> </ram:ApplicableHeaderTradeSettlement>
Technical details
The test counts only ram:TaxTotalAmount elements whose currencyID matches ram:InvoiceCurrencyCode and allows no more than one.
In the invoice totals, this concerns ram:TaxTotalAmount whose currencyID matches ram:InvoiceCurrencyCode.
rule/@context)assert/@test)