Validator e-Factura

Toate codurile de eroare › BR-CO-17

BR-CO-17 – TVA-ul unei cote e greșit

Eroareen16931se aplică la e-Factura

Ce spune regula

Valoarea TVA a categoriei (BT-117) = Baza de calcul a categoriei (BT-116) × (Cota categoriei de TVA (BT-119) / 100), rotunjită la două zecimale.

Traducere neoficială; textul oficial e mai jos.

Cum o repari

Pentru fiecare cotă: baza de calcul × cota / 100, rotunjit la 2 zecimale.

UBL: cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount

Verifică-ți factura gratuit

Lipește XML-ul și vezi toate erorile, cu corectura exactă și valoarea corectă.

Unde se verifică în XML

Context: cac:TaxTotal/cac:TaxSubtotal

Condiția (XPath):

(round(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/xs:decimal(cbc:Percent)) = 0 and (round(xs:decimal(cbc:TaxAmount)) = 0)) or (round(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/xs:decimal(cbc:Percent)) != 0 and ((abs(xs:decimal(cbc:TaxAmount)) - 1 < round(abs(xs:decimal(cbc:TaxableAmount)) * (cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/xs:decimal(cbc:Percent) div 100) * 10 * 10) div 100 ) and (abs(xs:decimal(cbc:TaxAmount)) + 1 > round(abs(xs:decimal(cbc:TaxableAmount)) * (cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/xs:decimal(cbc:Percent) div 100) * 10 * 10) div 100 ))) or (not(exists(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/xs:decimal(cbc:Percent))) and (round(xs:decimal(cbc:TaxAmount)) = 0))
Textul oficial (engleză)

VAT category tax amount (BT-117) = VAT category taxable amount (BT-116) x (VAT category rate (BT-119) / 100), rounded to two decimals.

Reguli înrudite