Invoice total VAT amount and Invoice total VAT amount in accounting currency MUST have the same operational sign
The VAT amount in the VAT accounting currency and the VAT amount in the document currency have different signs: one is negative while the other is zero or positive, or vice versa.
The rule keeps the direction of the VAT amounts consistent in both currencies. An amount below zero must be below zero in both currencies; an amount of zero or more must be zero or more in both.
The VAT amount in the VAT accounting currency has a different sign from the amount in the document currency. Make the signs of the two amounts consistent.
- Locate the two
ram:TaxTotalAmountelements inram:SpecifiedTradeSettlementHeaderMonetarySummation. - Compare the amount in the invoice currency with the amount in the currency specified by
ram:TaxCurrencyCode. - Make sure both amounts are either negative or zero and positive.
- Generate the invoice again and validate it.
<ram:ApplicableHeaderTradeSettlement> <ram:TaxCurrencyCode>USD</ram:TaxCurrencyCode> <ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxTotalAmount currencyID="EUR">-10.00</ram:TaxTotalAmount> <ram:TaxTotalAmount currencyID="USD">11.00</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation> </ram:ApplicableHeaderTradeSettlement>
<ram:ApplicableHeaderTradeSettlement> <ram:TaxCurrencyCode>USD</ram:TaxCurrencyCode> <ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxTotalAmount currencyID="EUR">-10.00</ram:TaxTotalAmount> <ram:TaxTotalAmount currencyID="USD">-11.00</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation> </ram:ApplicableHeaderTradeSettlement>
Technical details
The test does not apply if ram:TaxCurrencyCode or a ram:TaxTotalAmount in the document currency is absent. Otherwise, both amounts must be either less than zero or greater than or equal to zero.
The rule applies to VAT amounts in ram:SpecifiedTradeSettlementHeaderMonetarySummation within ram:ApplicableHeaderTradeSettlement when ram:TaxCurrencyCode and an amount in the document currency are present.
rule/@context)assert/@test)