Source: https://xsdhub.com/fr/regles-facture-electronique/br-s-05

English · Deutsch · FrançaisBR-S-05 : Taux nul pour la catégorie S

Renseignez le taux applicable. Si aucune TVA n’est due, vérifiez la catégorie fiscale appropriée et les informations qu’elle exige.

Champs : BT-151, BT-152.

Conditions sources et champs

UBL en16931 : le contexte cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'] | cac:CreditNoteLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'] sélectionne les nœuds contrôlés ; la condition porte sur Percent. 

context: cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'] | cac:CreditNoteLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']
test: (cbc:Percent) > 0

CII en16931 : le contexte //rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'S'][upper-case(ram:TypeCode) = 'VAT'] sélectionne les nœuds contrôlés ; la condition porte sur RateApplicablePercent. 

context: //rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'S'][upper-case(ram:TypeCode) = 'VAT']
test: ram:RateApplicablePercent > 0

Les champs sont localisés par contexte source → sélecteur ; les alternatives et conditions de syntaxe restent explicites.

BT/BGUBLCIISource

BG-25Invoice/CreditNote → cac:InvoiceLine | cac:CreditNoteLine/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ → ram:IncludedSupplyChainTradeLineItemBR-S-05

BT-151cac:InvoiceLine | cac:CreditNoteLine → (cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/(normalize-space(upper-case(cbc:ID))='VAT')]/cbc:ID)//ram:IncludedSupplyChainTradeLineItem → (ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[upper-case(ram:TypeCode) = 'VAT']/ram:CategoryCode)BR-CO-04

BT-152Invoice/CreditNote → cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:Percent | cac:CreditNoteLine/cac:Item/cac:ClassifiedTaxCategory/cbc:Percent/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ → ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:RateApplicablePercentBR-S-05

Cette condition vient des artefacts européens EN 16931 ; XRechnung ajoute des contraintes nationales et Factur-X dispose de ses propres règles CII par profil.



Exemple contrôlé

La modification value porte directement sur /*/cac:InvoiceLine[1]/cac:Item/cac:ClassifiedTaxCategory/cbc:Percent : valeur erronée '0', valeur restaurée '21'. Le document UBL erroné passe XSD et produit BR-S-05 ; sa correction passe EN 16931 rules 1.3.16. Autres codes déclenchés : 1.

Fragment erroné

<cac:ClassifiedTaxCategory xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
                <cbc:ID>S</cbc:ID>
                <cbc:Percent>0</cbc:Percent>
                <cac:TaxScheme>
                    <cbc:ID>VAT</cbc:ID>
                </cac:TaxScheme>
            </cac:ClassifiedTaxCategory>
        


Fragment corrigé

<cac:ClassifiedTaxCategory xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
                <cbc:ID>S</cbc:ID>
                <cbc:Percent>21</cbc:Percent>
                <cac:TaxScheme>
                    <cbc:ID>VAT</cbc:ID>
                </cac:TaxScheme>
            </cac:ClassifiedTaxCategory>
        


XML erroné complet · XML corrigé complet



Messages communs dans nos mutations

Dans les 1 338 mutations synthétiques enregistrées, BR-S-05 apparaît dans 39 essais (ubl/en16931 32, ubl/xrechnung 2, cii/en16931 3, cii/xrechnung 2). Les mêmes essais produisent aussi : BR-S-08: 39.

Protocole synthétique, groupes et comptage



Champs et règles associés

BR-21 — BG-25

BR-22 — BG-25

BR-23 — BG-25

BR-24 — BG-25

BR-25 — BG-25

BR-AE-01 — BG-25, BT-151

BR-AE-02 — BG-25, BT-151

BR-AE-05 — BG-25, BT-151, BT-152

BR-CO-04 — BG-25, BT-151

BR-E-01 — BG-25, BT-151

BR-E-05 — BG-25, BT-151, BT-152

BR-O-01 — BG-25, BT-151



Diagnostic et emplacement dans le rapport

[BR-S-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Standard rated" the Invoiced item VAT rate (BT-152) shall be greater than zero.

/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:InvoiceLine[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:Item[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:ClassifiedTaxCategory[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]

Le rapport JSON expose ce message dans errors[] ou warnings[] avec ce code et ce chemin ; l’interface l’affiche dans le rapport des règles métier.



Sources primaires fixes · EUPL / Apache sources


