Rules
Basic Info
|
Rule
|
When the Seller Tax Scheme Code = 'VAT', the Seller Tax ID is expected no more than 1 times within the Seller Party Tax. |
|
Context
|
/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme
|
|
Pattern
|
vrbl-invoice-AE-1p0 |
|
Severity
|
fatal |
Used Template: CountLessEqualNumber
| Parameter |
|
Value |
| probe |
= |
/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID
|
| number |
= |
1
|
Implementation
(
not(cac:TaxScheme/cbc:ID = 'VAT')
)
or
(
count(/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) <= 1
)