2
0
forked from Wavyzz/dolibarr
Commit Graph

34632 Commits

Author SHA1 Message Date
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
William Mead
640774d554 Qual clean dolibarrtriggers (#27968)
* Moved property init to constructor

* Added VERSIONS constant

* Updated code comments

* Refactor to use switch statement

* Added contributor details

* Refactored to use VERSIONS constant

* Added method return & parameter types

* Added getter methods

* Clean code

* Remove runTrigger return type

* Refactored & cleaned code. Added contributor details.

* Refactored modulebuilder trigger interface

* Cleaned code

* Fixed runTrigger types

* Added changelog warning

* Fixed return type

* Fixed return type

* Fixed PHP 7.0 compatibility

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-18 23:54:01 +01:00
Laurent Destailleur
0ec6c6f0ea Fix use log instead of fatal error 2024-02-18 23:49:23 +01:00
MDW
cb382eabe1 Fix: PhanParamSignatureMismatch (#28143)
* Fix: PhanParamSignatureMismatch

# Fix: PhanParamSignatureMismatch

PhanDoc was updated to require specific types which changes the method signature
versus the parent.
This results in a signature mismatch.
Updated to maintain the method signature but dynamically check that
the object type is correct.

* Update pre-commit for php-cs
2024-02-18 23:46:30 +01:00
MDW
275d190a2a Qual: Add verification on filters (dol_dir_list) (#28234)
# Qual: Add verification on filters (dol_dir_list)

As-is, '/' must be escaped in the regexes, this adds code to enforce
that requirement and avoid mistakes.

Even if the mathod using '{}' as delimiters is applied this check
could remain in place.

Also, returning empty array immediately - when the directory could
not be opened, closedir() can not be applied.
2024-02-18 23:44:35 +01:00
Laurent Destailleur
c3ba74173a Fix phpstan 2024-02-18 23:42:00 +01:00
Laurent Destailleur
778e7364e6 Fix phpunit 2024-02-18 23:23:01 +01:00
Lucas Marcouiller
88232ff0fc fix php warnings and errors (#28207)
Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
2024-02-18 23:00:01 +01:00
kkhelifa-opendsi
926462e218 FIX: Not trancate the multicurrency rate shown on cards (even if the global MAIN_MAX_DECIMALS_SHOWN is set to 0) (#28211) 2024-02-18 22:56:19 +01:00
Laurent Destailleur
685cdecca5 FIX Picto for mime 2024-02-18 22:39:31 +01:00
Laurent Destailleur
fe7f94e1d9 Debug v20 2024-02-18 22:23:26 +01:00
Laurent Destailleur
50b4e6f81a NEW Add a link "Fill with layout" 2024-02-18 21:15:26 +01:00
Laurent Destailleur
1c0068c248 Doc 2024-02-18 18:27:10 +01:00
Laurent Destailleur
3c108a1e53 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-18 17:20:29 +01:00
Laurent Destailleur
9b288e349e Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-18 17:20:16 +01:00
Laurent Destailleur
e38e9618ac Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-02-18 17:14:03 +01:00
Laurent Destailleur
ebe68c9075 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-02-18 17:06:36 +01:00
Laurent Destailleur
e6120d409f Clean code 2024-02-18 17:00:42 +01:00