Element variant 'ram:TaxTotalAmount[@currencyID=/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode]' may occur at maximum 1 times.
In the invoice line summation, ram:TaxTotalAmount with an @currencyID value matching ram:InvoiceCurrencyCode occurs more than once. This variant may occur at most once.
The tax amount for an invoice line in the invoice currency is stated at most once.
The tax amount in the invoice currency was provided more than once for an invoice line. The invoice contains ram:TaxTotalAmount with the matching @currencyID more than once.
- Compare the
@currencyIDvalues of theram:TaxTotalAmountelements withram:InvoiceCurrencyCode. - Make sure no more than one
ram:TaxTotalAmountuses the invoice currency. - Generate the invoice again and validate it.
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:TaxTotalAmount currencyID="EUR">1.00</ram:TaxTotalAmount> <ram:TaxTotalAmount currencyID="EUR">2.00</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:TaxTotalAmount currencyID="EUR">1.00</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
Technical details
The XPath counts only ram:TaxTotalAmount elements whose @currencyID matches the header ram:InvoiceCurrencyCode and limits their number to one.
The rule applies to ram:TaxTotalAmount in an invoice line summation when its @currencyID value matches ram:InvoiceCurrencyCode.
rule/@context)assert/@test)