XRechnung 2.0.2 · UBL

PEPPOL-EN16931-R055

XRechnung 2.0.2 · UBL

fatalformat

Original rule text

Invoice total VAT amount and Invoice total VAT amount in accounting currency MUST have the same operational sign

Stored validation assertion
not(cbc:TaxCurrencyCode) or (cac:TaxTotal/cbc:TaxAmount[@currencyID=normalize-space(../../cbc:TaxCurrencyCode)] <= 0 and cac:TaxTotal/cbc:TaxAmount[@currencyID=normalize-space(../../cbc:DocumentCurrencyCode)] <= 0) or (cac:TaxTotal/cbc:TaxAmount[@currencyID=normalize-space(../../cbc:TaxCurrencyCode)] >= 0 and cac:TaxTotal/cbc:TaxAmount[@currencyID=normalize-space(../../cbc:DocumentCurrencyCode)] >= 0)