VRBL-INV-CN-1p0-13
Basic Info
|
Rule
|
When the Invoice Type Code is 380 and the Invoice Subtype Code is FEVT, the Buyer Tax ID used for VAT ID must exist within the Buyer Party. |
|
Context
|
/ubl:Invoice/cac:AccountingCustomerParty/cac:Party
|
|
Pattern
|
vrbl-invoice-cn-1p0 |
|
Severity
|
fatal |
Used Template: Exists
| Parameter |
|
Value |
| probe |
= |
cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/cbc:CompanyID
|
| displayName_probe |
= |
%{cac:PartyTaxScheme/cbc:CompanyID} used for VAT ID
|
Implementation
(
not(/ubl:Invoice/cbc:InvoiceTypeCode = '380' and /ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:InvoiceSubtypeCode = concat($VRBL-CN-Prefix, 'FEVT'))
)
or
(
boolean(cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/cbc:CompanyID)
)