Commit Graph

14956 Commits

Author SHA1 Message Date
Laurent Destailleur
a23a7385e7 Fix phan 2024-11-07 01:16:48 +01:00
MDW
278d301f32 Qual: Fix phan/phpstan notices in class files (part 6) (#31634)
* Qual: Fix notices for paymentdonation...workstationusergroup.class

* Qual: Fix PhanPluginRedundantReturnComment, update baseline

* Qual: Complete array phpdoc for properties
2024-11-06 23:57:45 +01:00
Laurent Destailleur
0e55db7caf WIP Captcha architecture 2024-11-06 23:02:46 +01:00
Laurent Destailleur
84c343cada WIP Captcha module architecture 2024-11-06 22:15:25 +01:00
Laurent Destailleur
b03684c0ee Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-11-06 20:17:28 +01:00
Laurent Destailleur
13ce7cfd04 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-11-06 20:17:14 +01:00
MDW
178d748cad Qual: Fix phan/phpstan notices in class files (part 5) (#31617)
* Qual: fix commonstickergen..don.class

* Fix notifications for pdf_paiement...cronjob.class

* Qual: Fix notifications for emailcollector..price_parser.class

* Ensure that NULL is used in the database when fk's are 0/empty

* Fix notifications for pdf_paiement...cronjob.class

* Cope with updated phpstan, and make fk_origin_stock int in multiple locations
2024-11-06 20:15:15 +01:00
Laurent Destailleur
b7821bde26 FIX the autofix corrupted vat value must be triggered only if we are
sure data is corrupted.
FIX the autofix must also fix the multicurrency value.
2024-11-06 16:17:51 +01:00
Laurent Destailleur
4bdd848bbe Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-11-06 13:26:08 +01:00
Frédéric FRANCE
24e7285539 fix CI (#31692)
* Update commonobjectline.class.php

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-05 15:33:09 +01:00
Laurent Destailleur
fc0496c48b Fix phan 2024-11-05 15:06:17 +01:00
Laurent Destailleur
b25c75c87d Clean code 2024-11-05 14:52:59 +01:00
Laurent Destailleur
d980889f8a Doc comment 2024-11-05 14:22:06 +01:00
Laurent Destailleur
54216fc00d Fix phan 2024-11-05 14:16:32 +01:00
Laurent Destailleur
eff4ee9fae Debug v21 2024-11-05 10:14:40 +01:00
Laurent Destailleur
590ecf0243 Debug v21 2024-11-05 01:43:48 +01:00
Frédéric FRANCE
1adc883b56 add baseline exclude for phpstan (#31632)
* add baseline exclude for phpstan

* update

* update

* update

* update

* update

* merge

* restore one filter

* delete old errors

* fix

* fix

* fix

* $moreforfilter can t be empty

* fix

* enable check

* refresh baseline

* add phpdoc

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 23:53:20 +01:00
Mathieu Moulin
f2b33ffd55 Fix use of extrafield of type link with CommonObjectLine (#29957)
* define default getNomUrl() in CommonObjectLine class

* Fix mistakes (pre-commit...) and precise function description

* Fix CommonObjectLine::getNomUrl to be useable with existing

* Update commonobjectline.class.php

* Update commonobjectline.class.php

* Update commonobjectline.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 23:52:10 +01:00
Laurent Destailleur
7e6a41bbd9 Share common code 2024-11-04 13:56:05 +01:00
Jarod1980
f1581e9eed Update commonobject.class.php (#31667)
change sourcetype and targettype to use  $this->getElementType() instead of $this->element
2024-11-04 12:33:48 +01:00
MDW
e7539f2e19 Qual: Fix notices in .lib.php files (#31672)
* Qual: Fix notices in .lib.php files

* Update wrapper.php

* Update availabilities_card.php

* Update index.php

* Update document.controller.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 12:32:13 +01:00
Zephyriony
1619c103cd FIX Authorize modification of a partially shipped order (#31659)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-01 10:47:46 +01:00
Mohamed DAOUD
ae7c15d180 Fix function call to display star extra fields by passing object as parameter (#31664)
* fix stars extrafield regression

* Update extrafields_list_print_fields.tpl.php

* fix phan

* Update extrafields_list_print_fields.tpl.php
2024-11-01 10:47:16 +01:00
Je2fb
408215b873 Fix issue product multicurrency price in form list and incoterm location (#31651)
* Update html.form.class.php for multicurrency issue

Error in the name of the parameter data-multicurrency-up replaced by data-multicurrency-unitprice

* Fix Incoterm location

Replacement of function to retrieve the data from GET argument form GETPOSTINT to GETPOST, location_incoterms is a string and not a number

* Update card.php

* Update card.php

* Update card.php

* Update card.php

* Update shipment.php

* Update card.php

* Update card.php

* Update stocktransfer_card.php

* Update card.php

* Update card.php
2024-10-31 18:45:24 +01:00
Laurent Destailleur
034f77e8f7 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-10-31 18:38:47 +01:00
brice.l
94292a1740 Update html.formintervention.class.php (#31658)
This id should be set with the html name field
2024-10-31 18:24:29 +01:00
atm-thomasb
8a3e845b5b New RIB selector instead of default (#30899)
* Initial commit - adding new code

* backup, selector added

* NEW: column fk_iban in sql files

* changing the place of the selector

* fix: solved conflicts

* fix: reverted some extremely minor changes

* NEW_first_version_of_form

* TEST: removing chanbges on one file

* same test

* no idea how it's working

* FIX: button is working again

* First version of task working

* FIX: code cleanup to prepare for PR

* FIX: PR preparation part 2

* Revert "FIX: PR preparation part 2"

This reverts commit d11daa6da9.

* WIP added translated error for no iban found when creating bank transfert

* QUAL: simplifying readability of sql

* FIX: renaming fk_iban to fk_societe_rib

* WIP: new simplification of sql

* NEW: xml updated correctly

* FIX: wysiwig fixes

* FIX: PR preparation

* FIX: reverted default rib for llx_user

* FIX: last changes before standard PR

* Initial commit - adding new code

* backup, selector added

* NEW: column fk_iban in sql files

* changing the place of the selector

* fix: solved conflicts

* fix: reverted some extremely minor changes

* NEW_first_version_of_form

* TEST: removing chanbges on one file

* same test

* no idea how it's working

* FIX: button is working again

* First version of task working

* FIX: code cleanup to prepare for PR

* FIX: PR preparation part 2

* Revert "FIX: PR preparation part 2"

This reverts commit d11daa6da9.

* WIP added translated error for no iban found when creating bank transfert

* QUAL: simplifying readability of sql

* FIX: renaming fk_iban to fk_societe_rib

* WIP: new simplification of sql

* NEW: xml updated correctly

* FIX: wysiwig fixes

* FIX: PR preparation

* FIX: reverted default rib for llx_user

* FIX: last changes before standard PR

* FIX: resolved conflicts

* FIX: fixed automatic check warnings

* FIX: more check warnings fixed

* Update htdocs/compta/facture/prelevement.php

Co-authored-by: Florian Mortgat <50440633+atm-florianm@users.noreply.github.com>

* FIX: Added intval checks

* FIX: added escape

* FIX: forgot one entity

* FIX: added more escape for travis

* fix: removed an error handling that caused ci/cr conflicts

* fix: bonPrelevement create error that triggered when not error but empty result

* fix: added one space

---------

Co-authored-by: Florian Mortgat <50440633+atm-florianm@users.noreply.github.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-30 23:15:33 +01:00
MDW
f4ff437026 Qual: Fix phan/phpstan notices in class files (part 4) (#31598)
* Qual: Fix phan notices for DolibarrModules.class

* Qual: Fix notices for classes actioncomm..task.class.php

* fixup! Qual: Fix notices for classes actioncomm..task.class.php

* Qual: Fix new notices blocking PR
2024-10-30 21:33:30 +01:00
Mohamed DAOUD
057581aaf7 NEW Add Filter Assistance for Filling Filters Field (#31646)
* work on report page

* add translation

* optimize the query

* fix

* fix trans

* Update customreports.php

* Update customreports.php

* Update customreports.php

* fix phan
2024-10-30 21:29:41 +01:00
Laurent Destailleur
2e56340386 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-30 17:46:36 +01:00
Laurent Destailleur
1814e2bf15 Look and feel v21 2024-10-30 15:16:27 +01:00
MDW
b91c99b18a Qual: Fix phan/phpstan notices in class files (part 3) (#31578)
* fix phpstan in conf class (#31630)

* fix phpstan

* fix phan

* Fix merge

* Qual: Avoid notification with typing hint

* Qual: Fix notices link.class

* Qual: Fix notices link..socialneetworkmanager.class and DoliDb->DoliDB

* Qual: Fix notices for link..utils.class

* Qual: Fix notices for db classes

* Update translate.class.php

* Update translate.class.php

---------

Co-authored-by: Frédéric FRANCE <frederic34@users.noreply.github.com>
Co-authored-by: Laurent Destailleur <eldy@users.sourceforge.net>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-29 22:44:47 +01:00
Frédéric FRANCE
3929d4ba31 fix phpstan in conf class (#31630)
* fix phpstan

* fix phan
2024-10-29 21:02:10 +01:00
Frédéric FRANCE
e24cda47ce fix phpstan (#31613)
* fix phpstan

* fix
2024-10-29 17:31:59 +01:00
Laurent Destailleur
1987ea2eb7 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2024-10-29 15:47:51 +01:00
Laurent Destailleur
6a4ee18380 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2024-10-29 15:47:17 +01:00
Laurent Destailleur
b3a2908b48 Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2024-10-29 15:46:43 +01:00
Laurent Destailleur
910f7e8564 Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into 14.0 2024-10-29 15:46:12 +01:00
Laurent Destailleur
7cf1a97673 Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into 13.0 2024-10-29 15:44:55 +01:00
Laurent Destailleur
cf57e7e88b Merge 2024-10-29 15:44:25 +01:00
Laurent Destailleur
a186e16568 Backport fix for mysql 8 export 2024-10-29 15:32:54 +01:00
Laurent Destailleur
b717be581f Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-29 02:59:40 +01:00
Laurent Destailleur
e6f1d4835f Clean sql code 2024-10-29 02:58:20 +01:00
Frédéric FRANCE
7dfa9b7d33 remove unused code (#31610)
* remove unused code

* remove unused code

* fix typo

* fix

* fix

* fix
2024-10-28 19:49:01 +01:00
Laurent Destailleur
46c6827ccb Debug v21 2024-10-28 19:42:17 +01:00
Benoît PASCAL
ff9e2f3ce9 NEW: add duration extrafields (#31595)
* new: add duration extrafields

* style: fix style

* ci: fix precommit config

* style: run cs fixer

* ci: adapt type to fit with php-stan

* ci: adapt type to fit with php-stan

* ci: adapt type to fit with php-stan

---------

Co-authored-by: Benoît PASCAL <contact@p-ben.com>
2024-10-28 18:33:11 +01:00
lamrani abdelwadoud
cc4f86dac3 New functionality Generate img product (#29731)
* New functionality for generate image for product

* New functionality for generate image for product

* Fix errors CTI

* remove null for second params

* fix CTI errors again

* Fix whitespace

* Fix whitespaces again

* Fix run phan

* Update commonobject.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-28 14:51:36 +01:00
Laurent Destailleur
829edfe651 Debug v21 2024-10-28 12:12:27 +01:00
Laurent Destailleur
d1b348f051 Work on generic captcha architecture 2024-10-28 03:30:44 +01:00
Zephyriony
6b29450de7 NEW Authorize modification of a partially shipped order (#31423)
* NEW Authorize modification of a partially shipped order

* Update errors.lang

* Update commonobject.class.php

* Update commonobject.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-28 01:29:29 +01:00