VAT accounting currency code MUST be different from invoice currency code when provided.
When ram:TaxCurrencyCode is provided, its normalized text value matches that of ram:InvoiceCurrencyCode. In this case, the VAT accounting currency must not be the same as the invoice currency.
The VAT accounting currency is a separate currency designation and, when provided, must differ from the invoice currency.
The VAT accounting currency provided matches the invoice currency. If you provide a VAT accounting currency, it must differ from the invoice currency.
- Locate
ram:TaxCurrencyCodeandram:InvoiceCurrencyCodeinram:ApplicableHeaderTradeSettlement. - Compare the two currency values and make sure they differ.
- Generate the invoice again and validate it.
<ram:ApplicableHeaderTradeSettlement> <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode> <ram:TaxCurrencyCode>EUR</ram:TaxCurrencyCode> </ram:ApplicableHeaderTradeSettlement>
<ram:ApplicableHeaderTradeSettlement> <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode> <ram:TaxCurrencyCode>USD</ram:TaxCurrencyCode> </ram:ApplicableHeaderTradeSettlement>
Technical details
The test passes if ram:TaxCurrencyCode is absent or its normalized text value differs from that of ram:InvoiceCurrencyCode.
The rule applies to ram:TaxCurrencyCode and ram:InvoiceCurrencyCode in ram:ApplicableHeaderTradeSettlement.
rule/@context)assert/@test)