Commit Graph

148469 Commits

Author SHA1 Message Date
Laurent Destailleur
c5b4faffe7 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-19 17:56:22 +02:00
Laurent Destailleur
68a8631cb5 Doc 2025-10-19 17:56:12 +02:00
Laurent Destailleur
02216080f6 Fix picto 2025-10-19 17:54:52 +02:00
Frédéric FRANCE
1e329f2325 clean code (#35843)
* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code
2025-10-19 17:09:54 +02:00
Frédéric FRANCE
db4d73ed50 clean baseline phpstan (#35840) 2025-10-19 03:35:21 +02:00
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
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
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
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
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
993f821a3b Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-17 18:44:26 +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
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
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
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
Laurent Destailleur
be803918dd Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-17 03:50:50 +02:00
Laurent Destailleur
5da33763d2 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-17 03:50:31 +02:00
Alexandre SPANGARO
88607b2eda QUAL Accountancy - Use xxx_prepare_head() on accounting transaction (#35778)
* QUAL Accountancy - Use xxx_prepare_head() on accounting transaction

* Fix phpstan

* Fix phpstan

* Fix according to Frederic

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-17 03:46:20 +02:00
Laurent Destailleur
b395cee7c8 Use position on each numbering module 2025-10-17 03:33:54 +02:00
Christophe Battarel
6e184d4195 NEW : add free numbering module for members (#35636)
* NEW : add free numbering module for members

* fix next value

* fix codesniffer

* fix phan

* fix missing class declaration

* rename module

---------

Co-authored-by: Christophe Battarel <christophe@altairis.fr>
2025-10-17 03:29:57 +02:00
Laurent Destailleur
fefc2ef466 CSS 2025-10-17 03:28:23 +02:00
Laurent Destailleur
c0e395ee11 Clean code 2025-10-17 02:53:01 +02:00
Frédéric FRANCE
29b3880e6c add dolBuildUrl (#35664)
* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* clean baseline

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-17 02:31:07 +02:00
Alexandre SPANGARO
54f8ac4153 FIX Accountancy - Missing subledger information on mass cloning (#35777)
* FIX Accountancy - Missing subledger information on mass cloning

* Clarify - Add date_creation / Remove doc_type, fk_doc, fk_docdet

* Last fix

* Fix phan on user->Id

* Update bookkeeping.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-17 02:15:33 +02:00
Frédéric FRANCE
90a0d3cc28 clean phpstan baseline (#35798)
* fix missing translation

* fix missing translation

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-17 02:01:47 +02:00
MDW
fa266e7fd7 Qual: Update phan baseline, set return value for anonymous functions (#35775)
* Qual: Update baseline regarding fixed phan notices

# Qual: Update baseline regarding fixed phan notices

* Qual: Fix phan notice (return type of anonymous function

# Qual: Fix phan notice (return type of anonymous function
2025-10-17 01:57:37 +02:00
Leander Cain Slotosch
174a38b48b ADD new german forme juridique (#35799)
* Add new eGbR forme juridique for Germany

* Add more missing forme juridique for Germany
2025-10-17 01:55:27 +02:00
John BOTELLA
0d8647975d Uiux : Data for invoices & Orders status badges (#35781)
* New data for invoices status badges

* add orders

* add module builder
2025-10-17 01:55:11 +02:00