VRBL-INV-EN16931-M-53
Basic Info
| Rule | An Invoice that contains a Charge Group where the Charge Tax ID is "Reverse charge" must contain Seller Tax ID, the Tax Representative Tax Company ID and/or the Buyer Tax Company ID and the Buyer Party Legal Entity Company ID. |
| Context |
/ubl:Invoice
|
| Pattern | vrbl-invoice-en16931-ubl-model |
| Severity | fatal |
Implementation
(
boolean(cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']/cac:TaxCategory[cbc:ID = 'AE'][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)
)
and
(
boolean(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/cbc:CompanyID)
or
boolean(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID)
)
)
or
not(boolean(cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']/cac:TaxCategory[cbc:ID = 'AE'][cac:TaxScheme/cbc:ID ='VAT']))