VRBL-STM-MX-1p0-15

Basic Info

Rule The Statement Seller Postal Zone must contain a valid postal code.
Context /ubl:Statement/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:PostalZone
Pattern vrbl-payments-mx-1p0
Severity fatal

Implementation

(
				$PostalZone = 0
)
or
(
				$PostalZone >= 1000 and $PostalZone <= 16999
)
or
(
				$PostalZone >= 20000 and $PostalZone <= 20639
)
or
(
				$PostalZone >= 20641 and $PostalZone <= 28469
)
or
(
				$PostalZone >= 28500 and $PostalZone <= 52799
)
or
(
				$PostalZone >= 52900 and $PostalZone <= 54499
)
or
(
				$PostalZone >= 54539 and $PostalZone <= 54539
)
or
(
				$PostalZone >= 54570 and $PostalZone <= 68929
)
or
(
				$PostalZone >= 68940 and $PostalZone <= 90750
)
or
(
				$PostalZone >= 90754 and $PostalZone <= 90754
)
or
(
				$PostalZone >= 90760 and $PostalZone <= 91310
)
or
(
				$PostalZone >= 91315 and $PostalZone <= 93769
)
or
(
				$PostalZone >= 93780 and $PostalZone <= 95049
)
or
(
				$PostalZone >= 95060 and $PostalZone <= 95659
)
or
(
				$PostalZone >= 95670 and $PostalZone <= 99999
)