Skip to content

v2.1.0

Choose a tag to compare

@brtdv brtdv released this 14 Jan 22:30
· 30 commits to master since this release
9ed74f5

This release includes significant improvements to UBL invoice parsing, new features for tax handling, and several bug fixes for XML serialization.

New Features & Improvements

  • TaxCurrencyCode: Added support for getting and setting cbc:TaxCurrencyCode on invoices. (Credits: @CasperBE)
  • TaxSubtotal: Now reads all cac:TaxSubtotal elements from cac:TaxTotal instead of only the first one. (Credits: @CasperBE)
  • PayeeParty: Improved retrieval of cac:PayeeParty with a dedicated class that properly handles its different structure. (Credits: @CasperBE)
  • AllowanceCharge: Added support for reading cac:TaxCategory on cac:AllowanceCharge elements. (Credits: @CasperBE)

Bug Fixes

  • Reference Classes: Fixed TypeError when parsing UBL files with missing optional ID elements by making setter types nullable for OrderReference, ProjectReference, ContractDocumentReference, and InvoiceDocumentReference. (Credits: @TNAJanssen)
  • TaxAmount: Fixed reading of TaxAmount values.
  • Price: Made cbc:BaseQuantity optional in Price XML serialization, aligning with the UBL 2.1 schema specification. Previously it was incorrectly written with a 0 value even when not set. (Credits: @hevesi)
  • Delivery: Fixed ActualDeliveryDate to properly cast to a DateTime object. (Credits: @CasperBE)
  • Date Handling: Improved handling of date values during parsing.

Maintenance

  • Removed duplicate array key in codebase.
  • Renamed variable for consistency.

Contributors

@TNAJanssen, @CasperBE, @hevesi