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