PintLint

Rules / IBR-120

IBR-120 error

Australian Business Number (ABN) must be stated in the correct format for for endpoints

Australian Business Number (ABN) must be stated in the correct format for for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061).

Fails

<cbc:EndpointID>ABC 123</cbc:EndpointID>

Fix

Fix the value's format. The rule text says what shape it must have.

Schematron
Context
cbc:EndpointID[@schemeID = '0151'] | cac:PartyIdentification/cbc:ID[@schemeID = '0151'] | cbc:CompanyID[@schemeID = '0151']
Test
matches(normalize-space(), '^[0-9]{11}$') and u:abn(normalize-space())

Official text: Australian Business Number (ABN) must be stated in the correct format for for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061).

Official · PINT shared rules. Severity: error. Runs on UBL XML.

Check an invoice