Commit graph

151292 commits

Author SHA1 Message Date
MDW
8a84fad171
Qual: Fix misuse of Mo->error (#35841)
# Qual: Fix misuse of Mo->error

Phan identified that ++ was performed on Mo->error which is a string.
This fixes that by using a local $error variable (as in another
function).
2025-10-19 03:35:04 +02:00
Frédéric FRANCE
9193aa889a
clean phpstan baseline (#35839) 2025-10-19 03:34:22 +02:00
Frédéric FRANCE
8f7931eb49
clean phpstan baseline (#35837)
* clean phpstan baseline

* clean phpstan baseline

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-19 03:34:09 +02:00
Laurent Destailleur
9a8820b9c6 NEW Add column title in emailing and add more filters 2025-10-19 03:33:09 +02:00
Frédéric FRANCE
ed4b7ce58d
clean phpstan baseline (#35838)
* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* fix
2025-10-19 01:58:11 +02:00
Frédéric FRANCE
4bc77ebcda
clean phpstan baseline (#35836)
* clean phpstan baseline

* clean phpstan baseline
2025-10-19 01:56:26 +02:00
Frédéric FRANCE
18c29d0e40
fix tva can be sometimes string instead float (#35835) 2025-10-18 19:12:01 +02:00
MDW
66683105f1
Qual: Fix phan notices (#35827)
# Qual: Fix phan notices

Some type hints updates + correction to get week from date (action/pertype.php)
+ check that value is not null (pdf_* classes).
2025-10-18 19:10:43 +02:00
Frédéric FRANCE
05e6c8ce11
Fix phpstan (#35828)
* clean phpstan baseline

* clean baseline

* clean baseline

* clean baseline

* clean baseline
2025-10-18 19:09:52 +02:00
Laurent Destailleur
dabda44e8d Add more method in setup factory 2025-10-18 13:56:33 +02:00
Laurent Destailleur
f99cbafd64
Merge branch 'develop' into develop_new_rework_webportal_lists 2025-10-18 12:25:14 +02:00
Laurent Destailleur
3a8bab63cd Trans 2025-10-18 11:56:33 +02:00
Laurent Destailleur
1b4afcea4b Ignore file to avoid commiting it 2025-10-18 11:56:07 +02: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
Laurent Destailleur
836696847e Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-18 11:54:26 +02:00
Guido Schratzer
78aefbaa2e
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:54:09 +02:00
Laurent Destailleur
0df13aedcb Ignore file to avoid commiting it 2025-10-18 11:53:37 +02:00
Frédéric FRANCE
3d852682ec
clean baseline (#35822)
* clean baseline

* clean baseline

* clean baseline

* clean baseline

* clean baseline

* clean baseline
2025-10-18 11:20:54 +02:00
Vincent Maury
b28b94821f
NEW #35700 : Throw an error when validating a propal, order, supplier with a product no more in sale/purchase… (#35709)
* Fix #35700 : Throw an error when validating a propal, order, supplier proposal, supplier order if some products doesn't have the good status (on sale, on buy)

* Fix #35700 : Throw an error when validating a propal, order, supplier proposal, supplier order if some products doesn't have the good status (on sale, on buy)

* Fix #35700 : Throw an error when validating a propal, order, supplier proposal, supplier order if some products doesn't have the good status (on sale, on buy)

* Fix #35700 : Throw an error when validating a propal, order, supplier proposal, supplier order if some products doesn't have the good status (on sale, on buy)

* Fix #35700 : Throw an error when validating a propal, order, supplier proposal, supplier order if some products doesn't have the good status (on sale, on buy)

* Update commonobject.class.php

* Refactor checkActiveProductInLines method

* Fix comment formatting in commonobject.class.php

* Update commonobject.class.php

---------

Co-authored-by: vmaury <vmaury@vmaury-Lafite-Pro-16-AMD>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-18 11:19:31 +02:00
Laurent Destailleur
17e78c99a2 Fix responsive 2025-10-17 23:50:31 +02:00
Laurent Destailleur
f0c61790eb Clean code 2025-10-17 23:43:28 +02:00
Laurent Destailleur
384d40ca01 phpunit more complete 2025-10-17 19:39:45 +02:00
Laurent Destailleur
74d38106b9 Column must be shown by default if option PRODUCT_USE_SUPPLIER_PACKAGING
on
2025-10-17 19:28:02 +02:00
Laurent Destailleur
f711fe9900 FIX Must show unit price when price is not for quantity 1 2025-10-17 18:59:32 +02:00
Laurent Destailleur
993f821a3b Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-17 18:44:26 +02:00
Laurent Destailleur
2139fdd9a2 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-10-17 18:44:05 +02:00
Laurent Destailleur
6691441468 Fix position 2025-10-17 18:43:53 +02:00
Laurent Destailleur
3fb0dddd65 Fix default status of column 2025-10-17 18:39:42 +02:00
Laurent Destailleur
b6171202db Trans 2025-10-17 18:35:16 +02:00
Christophe Battarel
e81cca858e
NEW: import subscriptions (#35612)
* NEW: import subscriptions

* remove bad code

* FIX: already declared property is not needed

* Update subscription.class.php

* FIX: change format to please php-stan

* ENH: DolibarrModules::$import_convertvalue_array value format

---------

Co-authored-by: Christophe Battarel <christophe@altairis.fr>
Co-authored-by: Noé Cendrier <noe.cendrier@altairis.fr>
Co-authored-by: Noé Cendrier <81741011+altairis-noe@users.noreply.github.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-17 18:24:40 +02:00
Laurent Destailleur
9430078409 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-17 18:18:30 +02:00
Laurent Destailleur
493630eb4f Add expire at into token table. SQL part of #35804 2025-10-17 18:18:19 +02:00
Lucas Marcouiller
8fb42b0061
New fetch member to redirect to membership payment (#35808)
* New fetch member to redirect to membership payment

* add constant

* fix CI

* Update new.php

* Fix formatting of conditional check for member search

---------

Co-authored-by: Lucas Marcouiller <lmarcouiller@dolicloud.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-17 18:13:39 +02:00
Regis Houssin
da32ca9228
FIX wrong entity alias (#35821) 2025-10-17 18:11:29 +02:00
Marc de Lima Lucio
0d1b1703cc
FIX: missing prospect/customer category translation (#35814) 2025-10-17 16:15:39 +02:00
Vincent Maury
54a2335d79
Display error message when impossible to create user from contact (#35807)
Co-authored-by: vmaury <vmaury@vmaury-Lafite-Pro-16-AMD>
2025-10-17 15:56:17 +02:00
William Mead
3c5d6b9649
NEW: Option to clone parent categories on variant creation (#35806)
* Added option to clone parent categories on product variant creation

* Updated PHPDoc
2025-10-17 15:52:42 +02:00
Josep Lluís
0245482bc6
NEW Add configuration for default timesheet menu (#35805)
* Add configuration for default timesheet menu

Using PROJECT_OPEN_ALWAYS_ON_TIMESHEET config, you can use variables "perweek" (default), "perday" or "permonth"

* Update eldy.lib.php

* Fix default value for optionTimesheet variable

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-17 15:50:47 +02:00
lvessiller-opendsi
5de1fcca2f
FIX extra-field list depend on parent extra-filed list on direct edit (#35803) 2025-10-17 15:48:40 +02:00
github-actions[bot]
9447f04876
PHPStan > Update baseline (#35810)
Co-authored-by: Dolibot <dolibarr-bot@users.noreply.github.com>
2025-10-17 15:46:08 +02:00
William Mead
276f792e9a
Fixed return object for expense report API (#35813) 2025-10-17 15:45:59 +02:00
Laurent Destailleur
c48d4db3a5 Trans 2025-10-17 15:43:48 +02:00
Laurent Destailleur
0fb8688b7c FIX clone of cron tasks 2025-10-17 15:10:33 +02:00
tnegre
66d72d0bba
FIX allow a situation with credit to be removed from cycle 2025-10-17 14:13:25 +02:00
Marc de Lima Lucio
403dad1660 FIX: expense report card: do not show bank account if user cannot see them 2025-10-17 13:56:07 +02:00
Laurent Destailleur
93a03691e1 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-17 13:45:12 +02:00
Laurent Destailleur
d87d6d10a4 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-17 13:44:54 +02:00
Laurent Destailleur
c902b2eeed Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-10-17 13:41:12 +02:00
Laurent Destailleur
c4528e39e3 Fix allowed styles in ckeditor 2025-10-17 13:41:01 +02:00
John BOTELLA
b1854b7d4f
UIUX : webportal css style PART 02 (#35774)
* Add css

* FIX CSS and UX

* fix php doc

* Fix missing badge for status

* fix download link css

* change space on comment
2025-10-17 12:22:20 +02:00