Commit Graph
64 Commits
Author SHA1 Message Date
Cédric Krier de1bb5d5d9 Update translations [skip ci] 2026-04-20 10:38:52 +02:00
Cédric Krier 4875c428e4 Render prepaid amount in UBL invoice
Closes #14766
2026-04-13 17:30:06 +02:00
Cédric Krier 283b4fc0ca Set direct debit based on party configuration if there is no payment mandate define
Closes #14702
2026-03-24 16:36:12 +01:00
Cédric Krier 5db4bb63c8 Fill invoice source amounts instead of checking amounts from UBL
Closes #14624
2026-03-14 00:46:13 +01:00
Cédric Krier 794b61b163 Filter the MIME type of the additional documents in UBL allowed by the specification
Closes #14708
2026-03-26 08:14:45 +01:00
Cédric Krier 39a22ae74f Use python3 to launch build 2026-03-26 00:32:49 +01:00
Cédric Krier 94c4f0a9e6 Rewrite coverage paths
Since tox is running tests on the installed package, the coverage paths are no
more relative to the repository root.
2026-03-25 19:39:52 +01:00
Cédric Krier e7294b45c7 Add VAT exemption code on tax
Closes #14573
2026-02-04 10:12:56 +01:00
Cédric Krier 145ce8f2f8 Make retrieval of metadata via build really quiet 2026-03-22 09:07:23 +01:00
Nicolas Évrard 299dd6b1c9 Update to Psycopg 3
Closes #10901
2026-03-22 19:53:32 +01:00
Cédric Krier d3c8a8e55d Add support for Python 3.14 2026-03-21 09:02:25 +01:00
Cédric Krier 42b0fc7061 Remove support for Python 3.9 2026-03-21 08:48:06 +01:00
Cédric Krier e15c0b7d7a Upgrade to pyproject using hatchling as build-system 2026-03-21 18:46:34 +01:00
Cédric Krier af2e06bb32 Set headers and restrict to 1 worker when checking documentation link
This follows the wikipedia robot policy:
https://wikitech.wikimedia.org/wiki/Robot_policy

Closes #14637
2026-03-02 10:58:19 +01:00
Cédric Krier 7dac232ad3 Do not divide LineExtensionAmount by a quantity of zero from UBL invoice
The unit price of such line can be the LineExtensionAmount.

Closes #14673
2026-03-14 09:58:22 +01:00
Cédric Krier 942c3cdb15 Filter out empty references and numbers when joining them from sales for UBL invoice
Closes #14652
2026-03-06 01:13:25 +01:00
Cédric Krier a3493a3f2f Fill payment means when parsing UBL invoice 2026-02-16 10:49:41 +01:00
Cédric Krier 15878ffbd5 Render invoice payment means in UBL and UNCEFACT 2026-02-13 18:28:24 +01:00
Cédric Krier c636664c17 Use only line extension amount to set unit price of UBL invoice line
Closes #14493
2026-02-16 17:22:16 +01:00
Cédric Krier 2b7c3f9f89 Update template to use invoice taxes of lines as invoice tax
Closes #14609
2026-02-16 13:31:03 +01:00
Cédric Krier 7573e8fbfd Set BillingReference to Invoice and Credit Note UBL
Closes #14517
2026-01-19 12:17:43 +01:00
Cédric Krier b0ff152120 Format the party's identifier codes
Closes #14485
2026-01-16 16:56:47 +01:00
Cédric Krier c260313c23 Use the legal notice of tax as tax exemption reason in UBL invoice
Closes #14572
2026-02-04 10:03:48 +01:00
Cédric Krier ce6c415c69 Search unit of measure with enough digits for the quantity in UBL invoice and credit note
Closes #14541
2026-01-23 23:49:58 +01:00
Cédric Krier 24a53758fd Use invoice taxes from line to render tax category in UBL Invoice
Closes #14571
2026-02-04 09:53:06 +01:00
Cédric Krier f1eea7c11e Correctly render address streets in UBL invoice for Peppol
Closes #14566
2026-01-30 15:24:46 +01:00
Cédric Krier 16dd9ae446 Set product on invoice line base on allowance/charge reason code from UBL invoice 2026-01-28 15:58:01 +01:00
Cédric Krier 19d4b91df2 Render allowance and charge in UBL invoice 2026-01-26 15:38:06 +01:00
Cédric Krier 49bcf51aca Import UBL allowance/charge as invoice lines
Closes #14524
2026-01-26 12:08:41 +01:00
Cédric Krier 7620829d61 Search for similar invoice line with the same category of unit for UBL invoice line
Closes #14548
2026-01-23 18:50:42 +01:00
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