No more than one tax total amount must be provided where currency id equals document currency code.
More than one ram:TaxTotalAmount has a currencyID matching the document currency code. There may be at most one VAT amount in that currency in this location.
The VAT breakdown must not report the VAT amount in the invoice currency more than once in the summary.
The invoice summary contains more than one VAT amount in the invoice currency. Adjust the information so that it appears there no more than once.
- Locate the
ram:TaxTotalAmountelements inram:SpecifiedTradeSettlementHeaderMonetarySummation. - Count the elements whose
currencyIDmatches the invoice currency and make sure there is no more than one. - Generate the invoice again and validate it.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxTotalAmount currencyID="EUR">10.00</ram:TaxTotalAmount> <ram:TaxTotalAmount currencyID="EUR">5.00</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxTotalAmount currencyID="EUR">10.00</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Technical details
The test counts ram:TaxTotalAmount elements whose currencyID equals $documentCurrencyCode and requires the count to be no greater than one.
The rule applies to ram:TaxTotalAmount within ram:SpecifiedTradeSettlementHeaderMonetarySummation in ram:ApplicableHeaderTradeSettlement.
rule/@context)assert/@test)