base_ubl_parse
Provide shared parsing utilities that extract business data from UBL documents so other modules can process the information.
Key Features
- base.ubl: Retrieves the UBL version from the XML root and raises an error when it is missing to enforce schema-compliant parsing.
- base.ubl: Parses customer party nodes to build partner dictionaries that include supplier-assigned account references and contact details.
- base.ubl: Parses supplier party nodes to gather customer-assigned account references along with standard partner information.
- base.ubl: Builds partner data from generic party nodes, collecting VAT numbers, names, contacts, website, identification schemes, and addresses.
- base.ubl: Maps UBL postal addresses into structured fields such as street lines, building number, city, postal code, state code, and country code.
- base.ubl: Derives delivery party information and supplements it with delivery location addresses when explicit delivery-party addresses are absent.
- base.ubl: Collects delivery commitment dates and times from UBL delivery nodes to populate scheduling data.
- base.ubl: Reads delivery term nodes to extract incoterm codes describing shipping conditions.
- base.ubl: Extracts product identification data, including GTIN barcodes and seller item codes, from order or invoice lines.