Rules
VRBL-INV-FR-CIUS-1p0-B2G-22
Basic Info
| Rule | For B2G, the Seller Party ID when the Seller Party ID Scheme ID is 0223 must be at most 18 characters long and it must match the Seller Tax ID used as VAT ID. |
| Context |
/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID
|
| Pattern | vrbl-invoice-fr-cpro-b2g |
| Severity | warning |
Implementation
not($isB2G)
or
not(@schemeID = '0223')
or
(string-length(normalize-space(.)) <= 18 and normalize-space(.) = /ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/cbc:CompanyID)