Rules
Basic Info
|
Rule
|
When the Invoice Subtype Code is CAS and the buyer is established in the Philippines, the Buyer Address Line 3 must exist within the Buyer Postal Address. |
|
Context
|
/ubl:Invoice/cac:AccountingCustomerParty/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/cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode) = 'PH')
)
or
(
boolean(cac:AddressLine/cbc:Line)
)