Commit Graph
34 Commits
Author SHA1 Message Date
Cédric Krier daad7943e6 Set the invoice type on invoice line from UBL invoice
The invoice type is needed to set the right account from the product.

Closes #14547
2026-01-23 15:29:07 +01:00
Cédric Krier 7c8e7bc23f Group tax lines per tax having the same UNECE codes in UBL invoice 2026-01-23 13:02:19 +01:00
Cédric Krier 0c503833d3 Do not group taxes by tax group in UBL invoice and credit note
The Peppol UBL rules limit to a single TaxTotal.

Closes #14542
2026-01-23 11:05:13 +01:00
Cédric Krier 680344c92b Format float and computed Decimal using fixed-point notation
This avoid the usage of scientific notation.
For float we must convert them to Decimal to get a precision large enough to
show all coefficient digits.
For computed Decimal (which are thus not rounded) we must normalized them first
to avoid trailing 0.

Closes #14522
2026-01-20 09:19:12 +01:00
Cédric Krier 8ae58308ce Use schemeID to search for identifier of the same type
Closes #14516
2026-01-19 11:43:28 +01:00
Cédric Krier 90ef7c822c Use the company IDs from UBL as identifier
Closes #14515
2026-01-19 11:48:55 +01:00
Cédric Krier 451a5b9fc7 Create the party name using the registration name of the legal entity from UBL first
Closes #14514
2026-01-19 11:34:14 +01:00
Cédric Krier b211b58884 Always set a value for invoice line unit from UBL invoice and credit note
The search for similar line needs to test if the unit has a value or not.

Closes #14544
2026-01-23 12:12:27 +01:00
Cédric Krier dd7d8c5459 Use ZZ as default unit code for UBL 2026-01-22 17:41:04 +01:00
Cédric Krier 59e04dbf59 Do not search unit of measure for unit code ZZ and XZZ from UBL
The mutually defined unit should let the system choose a default unit.

Closes #14537
2026-01-22 17:39:35 +01:00
Cédric Krier 17d953ae7d Fill buyer's item identification in UBL invoice
Closes #14470
2026-01-06 17:42:51 +01:00
Cédric Krier 93fad8dcf5 Use only a limited set of tags for PEPPOL Address
Closes #14494
2026-01-14 14:47:25 +01:00
Cédric Krier 91c5a087fb Use root prefix to retrieve the namespace of UBL document
Closes #14490
2026-01-14 14:39:08 +01:00
Cédric Krier 2c8dc24f38 Do not set SellersItemIdentification UBL tag if product has no code
PEPPOL-EN16931-R008: Document MUST not contain empty elements.

Closes #14458
2026-01-01 15:50:55 +01:00
Cédric Krier f612e2f872 Set only one payment term for Peppol UBL and only if the description is not empty
Closes #14454
2025-12-29 17:28:36 +01:00
Cédric Krier c60436c82a Split the UBL OrderReference field into sale reference and sale number
Closes #14452
2025-12-29 12:36:26 +01:00
Maxime Richez 5e71dcc564 Set only one customer identification in UBL Invoice and CreditNote
UBL-SR-16: Buyer identifier shall occur maximum once

Closes #14443
2025-12-22 18:34:35 +01:00
Cédric Krier 7c9a14dc34 Do not set percentage in tax subtotal in Peppol UBL
UBL-CR-499: A UBL invoice should not include the TaxTotal TaxSubtotal Percent
2025-12-22 12:37:22 +01:00
Cédric Krier e3f4ec32d1 Do not set payment terms due date in Peppol UBL
UBL-CR-463: A UBL invoice should not include the PaymentTerms PaymentDueDate
2025-12-22 12:36:04 +01:00
Cédric Krier 9302fe27d7 Do not set payment terms amount in Peppol UBL
UBL-CR-459: A UBL invoice should not include the PaymentTerms Amount
2025-12-22 12:38:51 +01:00
Cédric Krier 4df308a430 Do not set country subentity code in Peppol UBL
UBL-CR-225: A UBL invoice should not include the AccountingCustomerParty Party
PostalAddress CountrySubentityCode
2025-12-22 12:33:05 +01:00
Cédric Krier 259b19006e Do not set country name in Peppol UBL
UBL-CR-166: A UBL invoice should not include the AccountingSupplierParty Party
PostalAddress Country Name
UBL-CR-229: A UBL invoice should not include the AccountingCustomerParty Party
PostalAddress Country Name
2025-12-22 12:37:52 +01:00
Cédric Krier f7d90215f0 Fill DueDate in UBL Invoice and CreditNote
The BR-CO-25 Peppol rule requires to have a DueDate if there is no payment term
description. So the simplest solution is to always fill DueDate.

Closes #14441
2025-12-22 11:17:26 +01:00
Cédric Krier 63268692fd Use upper case for VATIN 2025-12-18 13:31:22 +01:00
Cédric Krier 543adc9e3f Support European VAT number as EAS and VATIN
Closes #14435
2025-12-19 09:41:39 +01:00
Cédric Krier 122ade0b30 Increase version number 2025-12-15 21:34:54 +01:00
Cédric Krier 692810e7b8 Prepare release 7.8.0 2025-12-15 20:17:16 +01:00
Cédric Krier 954f137e65 Update translations [skip ci] 2025-12-15 18:00:12 +01:00
Cédric Krier 500860c21d Use unit from similar line if not set yet by the UBL definition
Closes #14408
2025-12-05 10:18:23 +01:00
Cédric Krier 8f824d3d2a Fix typo in super call of _parse_2_line_reference
Closes #14407
2025-12-05 10:03:01 +01:00
Cédric Krier a89e7e20a7 Support UBL file in document incoming 2025-11-17 17:52:05 +01:00
Cédric Krier 6149c357f2 Add parser for UBL invoice and credit note 2025-11-20 13:08:49 +01:00
Cédric Krier 595c553a56 Add e-documents as reports on invoices 2025-10-29 15:55:04 +01:00
Cédric Krier 6e9981228a Add edocument_ubl module 2025-11-14 16:36:06 +01:00