Skip to content

Conversation

@burak-inan
Copy link

@burak-inan burak-inan commented Jan 11, 2026

fix: Add UBL CreditNote support in ZUGFeRDInvoiceImporter

  • Update type code extraction to handle CreditNoteTypeCode
  • Add PaymentMeans/PaymentDueDate path for CreditNote due date
  • Remove due date restriction for corrected invoices and credit notes
  • Add null check for paymentTerms description
  • Include CreditNoteLine in line item extraction
  • Support CreditedQuantity in Item constructor

Fixes parsing failures when importing UBL CreditNote documents which use
different element names than Invoice (e.g., CreditNoteTypeCode instead
of InvoiceTypeCode, CreditNoteLine instead of InvoiceLine).

Fixes #998

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ZUGFeRDInvoiceImporter does not properly handle UBL CreditNote documents

2 participants