CF410
Enter valid phone number - …: digits with an optional leading plus, no spaces, dashes or brackets.
error: the document is invalid
Why it fails
- A phone number written with spaces, dashes or brackets: +60 3-7654 3210.
How to fix it
Write the digits only, with the country code after a plus: +60376543210.
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.
Context
/*/cac:AccountingSupplierParty/cac:Party | /*/cac:AccountingCustomerParty/cac:Party
Test
$phone = ('', 'NA') or matches($phone, '^\+?[0-9]+$')
Checked with MyInvois e-Invoice