Commit Graph

34349 Commits

Author SHA1 Message Date
MDW
e363e53516 FIx: modulenames (#28337)
* Fix modulename

* Fix modulename

* Fix modulename
2024-02-21 19:17:56 +01:00
MDW
5a4c8c6ce7 FIx: modulenames (#28337)
* Fix modulename

* Fix modulename

* Fix modulename
2024-02-21 19:10:32 +01:00
Laurent Destailleur
c3868af0fb Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-21 19:09:47 +01:00
MDW
0fa220d138 FIx: modulenames (#28337)
* Fix modulename

* Fix modulename

* Fix modulename
2024-02-21 19:09:37 +01:00
Laurent Destailleur
ff524c9a52 Reduce label 2024-02-21 19:05:08 +01:00
Laurent Destailleur
3a23581b9e Mutualize code 2024-02-21 18:59:46 +01:00
MDW
8655d5a86b QUAL Use phan to help detect new issues (#27706)
* Qual: Add phan flow

- Add phan configuration (config, baseline, stubs);
- Add github action;
- Update apstats.php.

* Add directives to ignore false phan notices

* Qual: Add typing hints for extrafields TPL files

# Qual: Add typing hints for extrafields TPL files

Add typing hints for phan on view files

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-21 18:14:29 +01:00
Benjamin Falière
5460b97e8b NEW contact type on auto add contributor (#26077)
* NEW contact type on auto add contributor

* ADD second option

* RESTORE ticket module for external and fix constant

* GetDolGlobalInt

* Update ticket.class.php

---------

Co-authored-by: Benjamin Falière <benjamin.faliere@altairis.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-21 18:08:35 +01:00
MDW
05527d3998 Fix: Allow new & old names to check if module is loaded. (#28297)
* Fix: Allow new & old names to check if module is loaded.

# Fix: Allow new & old names to check if module is loaded.

The method 'isModEnabled()' was already checking some modules for
their new name, but after transitioning Conf this was not working
for 'member'.  Now testing for both names as 'Conf' can handle
both and deprecation will be reported.

Several issues were discovered after removing deprecated values.

* Update functions.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-21 17:31:08 +01:00
Laurent Destailleur
de789e03df QUAL Deprecated "domiciliation". Replaced with "address" 2024-02-21 16:43:41 +01:00
Laurent Destailleur
b6d0e1d21e Fix phpstan 2024-02-21 16:09:03 +01:00
Laurent Destailleur
5e322d2807 Fix phpstan 2024-02-21 16:02:31 +01:00
Laurent Destailleur
85ed3ad6d0 restore dolPrintLabel() 2024-02-21 14:51:44 +01:00
William Mead
37a31f75b7 Qual clean dolresource class (#28308)
* Use address, town, zip & email from CommonPeople

* Use element & table_element from CommonObject

* Updated PHPDoc

* Deleted unused properties

* Revert "Use element & table_element from CommonObject"

This reverts commit 88a06164d1.

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-21 13:59:41 +01:00
Laurent Destailleur
ca7f06f7d3 Try to fix the "Return of error for #28319" 2024-02-21 13:53:51 +01:00
MDW
db223a041f Qual: Optimisation in load criteria (dol_dir_list) (#28263)
# Qual: Optimisation in load criteria (dol_dir_list)

By moving the "$sortcriteria" conditions into the load conditions, the
comparison between strings is less frequent.

The original test can probably even be removed as it is part of load_*.

The only side-effect that I can see is with the hook, but I think
in theory there should not be a negative side-effect, only a positive
one as this tells the hook to load the data we need without relying
on the hook to make the proper interpretation of the searchcriteria.
2024-02-20 19:36:30 +01:00
Laurent Destailleur
313b1edd93 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-20 18:45:40 +01:00
William Mead
3aebda050f Added customer code export (#28309) 2024-02-20 18:45:03 +01:00
Laurent Destailleur
8acd3451d1 Doc 2024-02-20 18:40:14 +01:00
Laurent Destailleur
e36c2b2e29 doc 2024-02-20 18:29:11 +01:00
Laurent Destailleur
ae49542197 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-20 14:50:51 +01:00
Laurent Destailleur
0492fb6098 FIX close #28279 2024-02-20 14:46:56 +01:00
Laurent Destailleur
f0ffe83fe6 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-20 11:18:01 +01:00
Laurent Destailleur
977f6b5a61 Complete doc to mention MAIN_DISALLOW_URL_INTO_DESCRIPTIONS option 2024-02-20 11:17:40 +01:00
noec764
db6b17ad49 NEW: Add Filter on product reffering object status(Order and Order Supplier) (#28275)
* NEW: Add Filter on product reffering object status(Order and Order Supplier)

* Update html.formorder.class.php

* Update commande.php

* Update commande_fournisseur.php

---------

Co-authored-by: Noé <noe@scopen.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-20 02:12:06 +01:00
MDW
246ec58531 Qual: Refactor for distinction between encodings (STEP6) (Was PR #28228 !) (#28281)
* Qual: Refactor for distinction between encodings

# Qual: Refactor for distinction between encodings

Renamed path/file variable to equivalents with prefix os_ and utf8.
Also added $utf8_fullpath to optimize.

* Fix: Fix mixed os_path/utf8_path

# Fix: Fix mixed os_path/utf8_path

This fixes the mixing of a os_path encoding en utf8_path encoding
by reorganising the statement order.

Also avoid a os_encode call by reusing data already available.
2024-02-20 02:09:00 +01:00
thibdrev
7b1c8c43f6 qual : phpstan for htdocs/core/class/dolgraph.class.php (#28284)
* qual : phpstan for htdocs/core/class/dolgraph.class.php

htdocs/core/class/dolgraph.class.php	703	Method DolGraph::GetCeilMaxValue() should return int but returns float.

htdocs/core/class/dolgraph.class.php	1551	Method DolGraph::total() should return string but returns (float|int).

htdocs/core/class/dolgraph.class.php	1593	Method DolGraph::getDefaultGraphSizeForStats() should return int but returns string.

htdocs/core/class/dolgraph.class.php	1599	Method DolGraph::getDefaultGraphSizeForStats() should return int but returns string.

* phpcs
2024-02-20 02:04:41 +01:00
thibdrev
aadea9db4f qual: phpstan for htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php (#28286)
htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php	182	Property pdf_eagle::$atLeastOneBatch (int) does not accept bool.
2024-02-20 02:02:18 +01:00
MDW
b2d90629e7 Qual: Apply php-cs-fixer to make only manual changes stand-out (#28300)
* Qual: Apply php-cs-fixer to make only manual changes stand-out

# Qual: Apply php-cs-fixer to make only manual changes stand-out

A few changes will be proposed in the future to these files.  This already commits
the esthetic changes using php-cs-fixes.

* Qual: Apply php-cs-fixer to make only manual changes stand-out

# Qual: Apply php-cs-fixer to make only manual changes stand-out

A few changes will be proposed in the future to these files.  This already commits
the esthetic changes using php-cs-fixes.

* Qual: Apply php-cs-fixer to make only manual changes stand-out

# Qual: Apply php-cs-fixer to make only manual changes stand-out

A few changes will be proposed in the future to these files.  This already commits
the esthetic changes using php-cs-fixes.
2024-02-20 01:27:46 +01:00
lamrani abdelwadoud
2c8a2e5f61 New functionality for add cronjob (#28282) 2024-02-20 00:44:09 +01:00
Laurent Destailleur
dff5d3ac93 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-19 18:24:57 +01:00
Laurent Destailleur
43996fff1f Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-02-19 18:23:48 +01:00
Laurent Destailleur
dbeb4427dd Close #28261 2024-02-19 18:06:05 +01:00
Laurent Destailleur
7a45255427 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-19 18:02:14 +01:00
Laurent Destailleur
ebae0f60fc Clean code 2024-02-19 18:01:16 +01:00
Lucas Marcouiller
f84ae10dbf Fix some php warnings (#28278)
Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
2024-02-19 17:57:16 +01:00
notmarrco
2c3eff1896 NEW: API Add some api endpoints (#25126)
* feat(api): Add updateLine to Bank api + add salaries api

* feat(api): Add "deleteLine" to bank api

* fix(api): Remove unneeded mandatory field "salary"

* feat(api): Add PaymentSalaries and PaymentExpenseReports API

* fix(bankaccount): Fix bad phpdoc return type

* fix(bankaccount): Fix bad phpdoc return type and comments

* add updateLabel function to AccountLine

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-19 17:03:07 +01:00
Laurent Destailleur
46afde019b Fix missing cash control menu in auguria 2024-02-19 15:59:11 +01:00
Regis Houssin
832284e710 FIX avoid error "Column 'entity' in where clause is ambiguous" (#28270) 2024-02-19 15:20:08 +01:00
MDW
fd674e6fe6 Qual: Fastest test first, and test object type (STEP2) (#28259)
* Qual: Remove useless ignore case on regex

# Qual: Remove useless ignore case on regex

The ignore case on this regex is useless and may have a performance impact.

* Qual: Fastest test first, and test object type

# Qual: Fastest test first, and test object type

The test on nohook should be fastest, and the instanceof test helps
static tool checkers and supposedly also helps performance
2024-02-19 15:18:20 +01:00
MDW
e24429ca2a Qual: Remove useless ignore case on regex (#28258)
# Qual: Remove useless ignore case on regex

The ignore case on this regex is useless and may have a performance impact.
2024-02-19 15:17:03 +01:00
Laurent Destailleur
978dd06c67 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-19 15:02:37 +01:00
Laurent Destailleur
323063e5aa Removed dolPrintLabel(). Must use dolPrintHTML... 2024-02-19 14:30:02 +01:00
Laurent Destailleur
2365402137 NEW $noescapetags param of dol_escape_html works if attributes 2024-02-19 12:16:06 +01:00
Laurent Destailleur
b153e5ee0b css 2024-02-19 10:39:51 +01:00
Laurent Destailleur
5e4be61e7a Clean code 2024-02-19 10:16:50 +01:00
Laurent Destailleur
059c69667c Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-02-19 09:59:57 +01:00
Laurent Destailleur
1ec1704de9 FIX Picto for mime 2024-02-19 09:58:42 +01:00
atm-sami
aa068bd0a0 18.0 FIX multiplication error (#28266)
* add new hook context for mo production card

* remove consumed and produced line when we clone mo

* Fix multiplication error in actions_addupdatedelete.inc.php
2024-02-19 09:35:59 +01:00
Lenin Rivas
a84ee2f1fb Contact phone mobile show Link to whatsapp (#28265)
* Contact phone mobile show Link to whatsapp

* Contact phone mobile with icon link to whatsapp

* Contact phone mobile show icon link to Whatsapp
2024-02-19 09:32:28 +01:00