CV317
State Code 17 should be used for Consolidated e-Invoice and non-Malaysian address only - the …'s address is in MYS and the document is not consolidated.
Why it fails
- State 17 (Not Applicable) given for a Malaysian address of a document that is not consolidated.
How to fix it
Give the state of the address, 01 to 16; keep 17 for a foreign address and the buyer of a consolidated e-invoice.
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
/*/cac:AccountingSupplierParty/cac:Party | /*/cac:AccountingCustomerParty/cac:Party
$state ne '17' or $foreign or $consolidated
Checked with MyInvois e-Invoice