# XV-RO-11

Source: https://xmlvalid.com/rules/XV-RO-11

> Nu a fost identificat cui cumparator. #ANAF's validator finds no Romanian tax code for the buyer: no CompanyID in its PartyTaxScheme (BT-48) or PartyLegalEntity (BT-47) that starts with RO or is a number. A consumer without one is written as thirteen zeros.

- Level: error
- Rule sets: RO e-Factura tax code checks ANAF validator 1.3.0
- Context: `/ubl:Invoice | /cn:CreditNote`
- Test: `$buyer != 'missing'`

## Why it fails

- The buyer has neither a `cac:PartyTaxScheme/cbc:CompanyID` nor a `cac:PartyLegalEntity/cbc:CompanyID` that starts with RO or is a number: a trade register number (`J02/321/2010`) or a foreign VAT number does not count.
- A consumer was left without a code.

## How to fix it

- Give the buyer's CUI, or for a consumer who gives none, thirteen zeros (`0000000000000`), as RO e-Factura expects.

Validate a document against these rules: https://xmlvalid.com/validate
