Skip to content

Conversation

GMatuleviciute
Copy link

@GMatuleviciute GMatuleviciute commented Aug 25, 2025

This pull request does not have a related issue as it's part of the delivery for development agreed directly with @altotovi @Groenbech96

Implementation

Implements structured format reader for processing XRechnung electronic documents (invoices and credit memos) based on UBL 2.1 standard.

Enables automatic parsing of XML content into draft purchase documents with support for:

  • Vendor identification through VAT registration, GLN, or participant ID
  • Document header information (dates, amounts, currency, references)
  • Line item details (products, quantities, prices, VAT rates)
  • Customer and supplier party information extraction

Provides viewing capability for imported documents through readable purchase document interface.

Important

This Pull request depends on #28983

Fixes #

AndriusAndrulevicius and others added 5 commits August 6, 2025 15:55
Implements structured format reader for processing XRechnung electronic documents (invoices and credit memos) based on UBL 2.1 standard.

Enables automatic parsing of XML content into draft purchase documents with support for:
- Vendor identification through VAT registration, GLN, or participant ID
- Document header information (dates, amounts, currency, references)
- Line item details (products, quantities, prices, VAT rates)
- Customer and supplier party information extraction

Provides viewing capability for imported documents through readable purchase document interface.
Replaces hardcoded string literals with named constants throughout the XRechnung document processing logic.

Consolidates duplicate constants and moves them to appropriate scopes to reduce code duplication and improve readability.

Updates XML documentation comments to provide clearer descriptions of method functionality and parameter usage.
…r.Codeunit.al

Co-authored-by: Grasiele Matuleviciute <131970463+GMatuleviciute@users.noreply.github.com>
…r.Codeunit.al

Co-authored-by: Grasiele Matuleviciute <131970463+GMatuleviciute@users.noreply.github.com>
Limits telemetry and import helper to local scope for better encapsulation.
Improves token naming for routing ID and VAT registration clarity.
Avoids hardcoded length by using field max length to prevent VAT ID truncation.
Copy link
Contributor

Could not find linked issues in the pull request description. Please make sure the pull request description contains a line that contains 'Fixes #' followed by the issue number being fixed. Use that pattern for every issue you want to link.

@GMatuleviciute GMatuleviciute changed the title [E-Document Formats][PINT A-NZ] - Migrate electronic formats to new purchase draft concept for e-invoicing (e-invoice preview) (PINT A-NZ )(APAC localization) [E-Document Formats][XRechnung] - Migrate electronic formats to new purchase draft concept for e-invoicing (e-invoice preview) (XRechnung )(DE localization) Aug 25, 2025
@GMatuleviciute GMatuleviciute changed the title [E-Document Formats][XRechnung] - Migrate electronic formats to new purchase draft concept for e-invoicing (e-invoice preview) (XRechnung )(DE localization) [E-Document Formats][XRechnung] - Migrate electronic formats to new purchase draft concept for e-invoicing (e-invoice preview) (XRechnung)(DE localization) Aug 25, 2025
@JesperSchulz JesperSchulz added the Integration GitHub request for Integration area label Aug 25, 2025
AndriusAndrulevicius and others added 3 commits August 28, 2025 11:52
- Introduces integration tests for XRechnung invoice ingestion: content extraction into draft, viewing extracted data, draft updates, and purchase invoice creation.
- Provides a mock e-document format and a test utility library to set up services, data, and mappings.
- Adds an XML test resource and configures the test app to load resources; extends the test object ID range.
- Adds a helper to reset e-document draft data.
- Updates dependencies to include the DE tests extension.

Improves confidence in end-to-end structured import and draft processing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Integration GitHub request for Integration area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants