Rules
VRBL-INV-EN16931-M-95
Basic Info
| Rule | An Invoice that contains a Document Level Charges where the Document Level Charge Tax Category Code is "Zero rated" must contain Seller Tax ID and/or the Seller Tax Representative Tax ID used for VAT ID. |
| Context |
/ubl:Invoice
|
| Pattern | vrbl-invoice-en16931-ubl-model |
| Severity | fatal |
Implementation
(
boolean(cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']/cac:TaxCategory[cbc:ID='Z'][cac:TaxScheme/cbc:ID='VAT'])
and
(
boolean(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID)
or
boolean(cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/cbc:CompanyID)
)
)
or
not(boolean(cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']/cac:TaxCategory[cbc:ID = 'Z'][cac:TaxScheme/cbc:ID='VAT']))