Commit Graph

2535 Commits

Author SHA1 Message Date
Laurent Destailleur
dea8957ec0 Merge pull request #36622 from rlaurent-alb/22.0
FIX | Fixing addPayment /invoices/id/payments
2025-12-15 14:25:24 +01:00
splohmer
65134e0746 FIX: SQL error for LIST_OF_QUALIFIED_INVOICES_LIMIT_DEFINED
sql error fix for mentioned secret parameter
2025-12-15 11:12:07 +01:00
Rayan LAURENT
77f4fc7b76 FIX | Fixing addPayment /invoices/id/payments
Fixing the API route as it is currently impossible to pay a Facture::TYPE_CREDIT_NOTE with this route (it keeps negating the ttc amount used as resteapayer), inspired by the other route /paymentsdistributed, line 1717.
2025-12-11 18:48:18 +01:00
splohmer
b2ab49a7c0 Fix: sql error if LIST_OF_QUALIFIED_INVOICES_LIMIT_DEFINED is used (#36135)
* Fix: sql error if LIST_OF_QUALIFIED_INVOICES_LIMIT_DEFINED is used

* Refactor SQL order and limit handling

* Update SQL query to limit qualified invoices

* Update facture.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-06 19:04:35 +01:00
Regis Houssin
fa10fc0f94 FIX avoid NULL value (#36126) 2025-11-06 13:15:03 +01:00
Regis Houssin
0fd19787e2 FIX #36113 (#36116) 2025-11-05 22:47:51 +01:00
Laurent Destailleur
8859dbdb79 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-11-04 12:53:15 +01:00
Frédéric FRANCE
c8d42248c2 fix CI V21 (#36078)
* Update phpstan.neon.dist

* Update phpstan-baseline.neon

* Update phpstan-baseline.neon

* Update phpstan-baseline.neon

* Update index.php

* Update facture.class.php

* Update facture.class.php
2025-11-04 12:25:24 +01:00
Laurent Destailleur
94d1a25d67 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-11-03 14:10:57 +01:00
ldestailleur
62760d6195 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-11-03 14:05:58 +01:00
Laurent Destailleur
d8d77a8e51 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-11-03 13:57:49 +01:00
Laurent Destailleur
af13e3354b Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-11-03 13:57:15 +01:00
Laurent Destailleur
e7a1e58ebf Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2025-11-03 13:51:38 +01:00
Laurent Destailleur
534d4ed4bc Merge branch '16.0' of git@github.com:/Dolibarr/dolibarr.git into 17.0 2025-11-03 13:49:06 +01:00
Laurent Destailleur
50b90d795c Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2025-11-03 13:48:51 +01:00
Laurent Destailleur
3209eb4bd8 Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2025-11-03 13:46:49 +01:00
atm-adrien
68fc03caae FIX : Situation percent set as 0 when adding line on situation invoices (#35999) 2025-10-29 17:05:43 +01:00
Guido Schratzer
ea2543e9e4 FIX #35766: Update buying price INT Float (#35769)
* FIX #35766: Update buying price INT Float
loose Decimals

.

* Fix: keep fk_product_fournisseur_price as int; treat buying price as float (no truncation) [#35766]

* Updated per feedback: keep fk_product_fournisseur_price as ?int (rowid) and  as float.
Adjusted FactureRec::updateline PHPDoc to ?int  and float|''  (model still normalizes via price2num).
Tested on a recurring line: decimals preserved, FK stored as int, CI green. Minor adjustments before v22 backport

* Delete .hooktest

* Delete dev/tools/pre-commit/README.md

* Delete test/phpunit/phpunit.xml

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-18 11:55:58 +02:00
lvessiller-opendsi
50afc9682b FIX create invoice from order using API and multi-entity (#35654)
* FIX create invoice from order using API and multi-entity

* FIX API not allow to access order in other entity on creating invoice from order

* Update api_invoices.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-06 13:56:50 +02:00
HENRY Florian
f532f85d8c fix: remove space in global conf test (#35484) 2025-09-26 20:54:21 +02:00
ldestailleur
1ed840384a Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-09-26 01:21:01 +02:00
ldestailleur
0226d75ec6 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-09-26 01:16:17 +02:00
Dylan Bourdere
669c939bcd use getDolGlobalString to avoid getting undefined property (#35436) 2025-09-22 20:30:47 +02:00
ldestailleur
90fb029050 FIX invoice not set to closed when we add a credit note to close it 2025-09-08 15:25:22 +02:00
HENRY Florian
a69bd1ba56 fix: divided by zero with customer packaging (#35224)
* fix: divided by zero with customer packaging

* fix: divided by zero with customer packaging

* fix: divided by zero with customer packaging

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-09-05 12:01:26 +02:00
Laurent Destailleur
ad7807d045 Merge remote-tracking branch 'origin/19.0' into 20.0 2025-07-31 23:40:06 +02:00
Laurent Destailleur
8dc50b4c5a Merge remote-tracking branch 'origin/18.0' into 19.0 2025-07-31 23:16:27 +02:00
Laurent Destailleur
0928191fdd Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2025-07-31 23:01:57 +02:00
ldestailleur
11abac1532 Fix CI 2025-07-28 19:01:18 +02:00
ldestailleur
5e31b370f8 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-07-27 13:54:02 +02:00
ldestailleur
770efaed97 Fix warning 2025-07-27 13:54:02 +02:00
ldestailleur
faebfdb464 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-07-27 13:54:02 +02:00
Florian Mortgat
f4555c4413 FIX 17.0 SQL syntax error and/or constraint error when calling Facture::update() after a clone (e.g. in a trigger) (#34778)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-23 11:26:49 +02:00
ldestailleur
b710c85b07 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-07-22 13:00:31 +02:00
ldestailleur
d04e8e62c9 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-07-22 12:56:45 +02:00
ldestailleur
e7594f52ff Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-07-22 12:48:35 +02:00
ldestailleur
d202af2593 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-07-22 12:48:14 +02:00
ldestailleur
ed4006b51b Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2025-07-22 12:47:52 +02:00
Florian Mortgat
bc33f7e1a7 FIX 17.0: when you clone an invoice that was created from a template invoice, the clone should not be linked to the template invoice (#34777) 2025-07-22 12:10:41 +02:00
ldestailleur
ca0538a79d Fix warning 2025-07-22 12:07:28 +02:00
ldestailleur
590f04ce04 Debug v22 2025-07-17 19:30:58 +02:00
ldestailleur
a145b3b44d Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-07-17 19:30:58 +02:00
ldestailleur
b410bf0731 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-07-17 19:30:58 +02:00
ldestailleur
bb09797599 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-07-15 18:36:39 +02:00
ldestailleur
bc82fba711 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-07-15 18:31:15 +02:00
ldestailleur
2d48131a91 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-07-15 18:15:55 +02:00
Laurent Destailleur
6b68f5aad0 Fix CI 2025-07-05 11:33:46 +02:00
Frédéric FRANCE
31517fdc9c situation_counter is nullable (#34693)
* situation_counter is nullable

* Update phpstan-baseline.neon
2025-07-04 20:07:03 +03:00
Lucas Marcouiller
f4efa58022 Fix #17816 match compta/paiement.php payment method for credit note invoices (#34696) 2025-07-04 20:06:35 +03:00
Jyhere
787bd1d278 CHANGE: ternary simplification (#34675) 2025-07-01 20:34:09 +02:00