Element variant 'ram:TaxTotalAmount[@currencyID=/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode]' may occur at maximum 1 times.
In the invoice line summation, ram:TaxTotalAmount with an @currencyID value matching ram:TaxCurrencyCode occurs more than once. This variant may occur at most once.
The tax amount for an invoice line in the tax currency is stated at most once.
The tax amount in the tax 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:TaxCurrencyCode. - Make sure no more than one
ram:TaxTotalAmountuses the tax 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:TaxCurrencyCode and limits their number to one.
The rule applies to ram:TaxTotalAmount in an invoice line summation when its @currencyID value matches ram:TaxCurrencyCode.
rule/@context)assert/@test)