PEPPOL-COMMON-R050
Australian Business Number (ABN) MUST be stated in the correct format.
Why it fails
- An Australian Business Number (scheme
0151) is not eleven digits, has spaces, or fails its check.
How to fix it
Write the ABN as eleven digits without spaces, and check it in the ABN Lookup.
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
cbc:EndpointID[@schemeID = '0151'] | cac:PartyIdentification/cbc:ID[@schemeID = '0151'] | cbc:CompanyID[@schemeID = '0151']
matches(normalize-space(), '^[0-9]{11}$') and u:abn(normalize-space())
Checked with Peppol BIS Billing 3.0 Invoice, Peppol BIS Billing 3.0 Credit Note, Austria e-Rechnung.gv.at Peppol Invoice, Austria e-Rechnung.gv.at Peppol Credit Note
cbc:EndpointID[@schemeID = '0151'] | cac:PartyIdentification/cbc:ID[@schemeID = '0151'] | cbc:CompanyID[@schemeID = '0151']
u:abn(normalize-space())
Checked with Norway EHF Reminder 3.0