Rules
VRBL-INV-PH-1p0-39
Basic Info
| Rule | When the Invoice Subtype Code is CAS, the Seller Postal Address must exist within the Seller Party. |
| Context |
/ubl:Invoice/cac:AccountingSupplierParty/cac:Party
|
| Pattern | vrbl-invoice-ph-1p0 |
| Severity | fatal |
Used Template: Exists
| Parameter | Value | |
|---|---|---|
| probe | = |
cac:PostalAddress
|
Implementation
(
not(normalize-space(/ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:InvoiceSubtypeCode) = 'VRBL:PH:CAS')
)
or
(
boolean(cac:PostalAddress)
)