# BR-S-02 Una riga ad aliquota ordinaria richiede un identificativo fiscale del venditore

Una fattura che contiene una riga di fattura (BG-25) il cui codice categoria IVA dell’articolo fatturato (BT-151) è "Aliquota ordinaria" deve contenere l’identificativo IVA del venditore (BT-31), l’identificativo di registrazione fiscale del venditore (BT-32) e/o l’identificativo IVA del rappresentante fiscale del venditore (BT-63).

## Descrizione del problema

> **ERRORE**: Regola EN 16931 sulla categoria IVA

## Contesto e significato

Questa regola EN16931 si applica alle operazioni di categoria S, che comprende l’aliquota ordinaria e le aliquote ridotte (in Italia ad esempio 22 %, 10 %, 5 % e 4 %). Un venditore che addebita l’IVA deve essere identificabile ai fini fiscali. In pratica l’errore si verifica quando l’anagrafica aziendale del software di fatturazione non contiene né partita IVA né codice fiscale, oppure quando l’esportazione non li scrive in cac:PartyTaxScheme.

## Soluzione

Aggiungi l’identificativo IVA del venditore in cac:PartyTaxScheme/cbc:CompanyID (BT-31), oppure fornisci l’identificativo di registrazione fiscale (BT-32) o l’identificativo IVA del rappresentante fiscale (BT-63).

- [Valida XML](/it/xrechnung-validator?source=resource&rule=BR-S-02)
- [Converti fattura](/it/pdf-to-xrechnung?source=resource&rule=BR-S-02)

## Esempi validi

- Riga ad aliquota ordinaria al 19 % con identificativo IVA venditore DE123456789 presente

## Esempi non validi

- Riga ad aliquota ordinaria al 19 % ma il venditore non riporta BT-31, BT-32 né BT-63

## Esempi di codice

### XML valido
```
<cac:AccountingSupplierParty>
  <cac:Party>
    <cac:PartyTaxScheme>
      <cbc:CompanyID>DE123456789</cbc:CompanyID>
      <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
    </cac:PartyTaxScheme>
  </cac:Party>
</cac:AccountingSupplierParty>
<cac:InvoiceLine>
  <cac:Item>
    <cac:ClassifiedTaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>19</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory>
  </cac:Item>
</cac:InvoiceLine>
```

### XML non valido
```
<cac:AccountingSupplierParty>
  <cac:Party>
    <cac:PartyLegalEntity><cbc:RegistrationName>Seller GmbH</cbc:RegistrationName></cac:PartyLegalEntity>
  </cac:Party>
</cac:AccountingSupplierParty>
<cac:InvoiceLine>
  <cac:Item>
    <cac:ClassifiedTaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>19</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory>
  </cac:Item>
</cac:InvoiceLine>
```

## Campi interessati

- [BT-31 Identificativo IVA del venditore](/resources/xrechnung/bt-31-seller-vat-identifier)
- [BT-32 Identificativo di registrazione fiscale del venditore](/resources/xrechnung/bt-32-seller-tax-registration-identifier)
- [BT-63 Identificativo IVA del rappresentante fiscale del venditore](/resources/xrechnung/bt-63-seller-tax-representative-vat-identifier)
- [BT-151 Codice categoria IVA dell’articolo fatturato](/resources/xrechnung/bt-151-invoice-line-vat-category-code)

## Regole correlate

- [BR-S-1](/resources/kosit-validator-errors/br-s-01-standard-rated-items-require-standard-rated-vat-breakdown)
- [BR-S-03](/resources/kosit-validator-errors/br-s-03-standard-rated-allowance-seller-vat-id)
- [BR-S-04](/resources/kosit-validator-errors/br-s-04-standard-rated-charge-seller-vat-id)

## Strumenti di validazione

- [Validatore KoSIT ufficiale](https://github.com/itplr-kosit/validator): Esegui il validatore ufficiale KoSIT con la configurazione XRechnung per controllare le regole EN 16931 e XRechnung.
- [Converti PDF in XRechnung](/pdf-to-xrechnung): Individua gli errori di validazione durante la conversione e verifica ogni correzione.

## Risorse correlate

- [Specifiche ufficiali](https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/)
- [Test suite](https://github.com/itplr-kosit/xrechnung-testsuite)
- [Tutti gli errori di validazione](/resources/kosit-validator-errors): Panoramica delle regole di validazione EN 16931, XRechnung e Peppol spiegate qui.
