Commit Graph

34349 Commits

Author SHA1 Message Date
Laurent Destailleur
66804093cd MQ and GP are same country for default vat definition 2024-02-25 18:27:57 +01:00
Laurent Destailleur
4897d1eb97 Fix warning 2024-02-25 17:23:06 +01:00
Laurent Destailleur
05914b4c78 Fix warning 2024-02-25 16:57:45 +01:00
Frédéric FRANCE
b7b799b88e fix phpstan (#28403) 2024-02-25 10:04:57 +01:00
Frédéric FRANCE
cac5d5e7c8 fix phpstan (#28398)
Property HookManager::$error (string) does not accept int.
2024-02-25 10:00:09 +01:00
Frédéric FRANCE
af3761000a fix phpstan (#28406)
Property ExtraFields::$errno (string) does not accept int.
2024-02-25 09:56:46 +01:00
Frédéric FRANCE
8588e97364 fix phpstan (#28397)
Property CommonObject::$ref (string) does not accept int.
2024-02-25 09:56:23 +01:00
Laurent Destailleur
1a25a086cb FIX quote in sql request 2024-02-24 17:49:11 +01:00
Laurent Destailleur
83087defa7 Merge 2024-02-24 17:45:55 +01:00
Laurent Destailleur
f90675f7fd FIX quote in sql request 2024-02-24 17:44:30 +01:00
Laurent Destailleur
88758c02b1 Fix phan 2024-02-24 14:25:33 +01:00
Laurent Destailleur
7e63df13af Fix phpstan warnings 2024-02-24 14:22:44 +01:00
MDW
6190c6ad69 Qual: Initialize module mapping from common constant (#28384)
# Qual: Initialize module mapping from common constant

DRY: Use constant define din functions.lib for centralized updates
2024-02-24 14:08:23 +01:00
MDW
b72294bf4c Fix: Typing for PDF parameter (#28383)
* Fix: Typing for PDF parameter

# Fix: Typing for PDF parameter

Change PDF to known type.

* Fix: Typing for PDF parameter

# Fix: Typing for PDF parameter

Change PDF to known type.
2024-02-24 14:07:21 +01:00
MDW
a7eaa091dc Fix: Reviewed, fixed and optimized dol_dir_list (#28387)
# Fix: Reviewed, fixed and optimized dol_dir_list

Review: had some issues using the exclusion filter, may be unrelated to implementation.
Fixed: is_link was testing utf8 filename, not os filename version.
Optimized:
- Simplified is_dir branches
- Avoid computing the exclusion arrays multiple times
2024-02-24 13:09:13 +01:00
Laurent Destailleur
1d66f725f9 Code 2024-02-23 17:47:27 +01:00
Laurent Destailleur
00939477fb Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-23 17:07:10 +01:00
Laurent Destailleur
3ef33e59a0 Doc 2024-02-23 17:06:56 +01:00
MDW
25617ab982 Fix: Protect from negative array index access (#28379)
# Fix: Protect from negative array index access

Negative array index access can happen when $i is 0.
While this raises a notice before PHP7.1 it would compare to the last
value in the string so it's invalid.

Detected with phan: PhanCompatibleNegativeStringOffset
2024-02-23 16:55:15 +01:00
Alban Durrheimer
36d364fb2d Add sendEmailsRemindersOnSupplierInvoiceDueDate cron function (#28378)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-23 16:50:21 +01:00
Laurent Destailleur
85803c9dbf Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-23 16:45:19 +01:00
Laurent Destailleur
ad6fe34361 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-02-23 14:27:51 +01:00
AWeerWolf
be571fd372 #28334 (#28336)
Update lib_head.js.php concerning Date Format
Replace 1900 by 2000
2024-02-23 13:40:30 +01:00
thibdrev
db2fc174cd qual: phpstan for htdocs/compta/paiement/class/paiement.class.php (#28364)
htdocs/compta/paiement/class/paiement.class.php	115	PHPDoc type array<int, float> of property Paiement::$multicurrency_tx is not covariant with PHPDoc type float of overridden property CommonObject::$multicurrency_tx.

htdocs/compta/paiement/class/paiement.class.php	120	PHPDoc type array<int, string> of property Paiement::$multicurrency_code is not covariant with PHPDoc type string of overridden property CommonObject::$multicurrency_code.
2024-02-23 13:40:22 +01:00
Laurent Destailleur
8aa3be1a82 Standardization 2024-02-23 13:28:17 +01:00
Laurent Destailleur
007b2bf758 Doygen 2024-02-22 19:29:31 +01:00
Laurent Destailleur
260505e2aa Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-22 19:27:03 +01:00
Laurent Destailleur
71dc610c25 Doc 2024-02-22 19:26:47 +01:00
thibdrev
132e98a4c7 qual: phpstan for CommonObject->origin (#28361)
htdocs/commande/class/commande.class.php	538	Property CommonObject::$origin (string) does not accept $this(Commande).
htdocs/commande/class/commande.class.php	675	Property CommonObject::$origin (string) does not accept $this(Commande).
htdocs/compta/facture/class/facture.class.php	2859	Property CommonObject::$origin (string) does not accept $this(Facture).
htdocs/compta/facture/class/facture.class.php	3378	Property CommonObject::$origin (string) does not accept $this(Facture).
htdocs/compta/facture/class/facture.class.php	3696	Property CommonObject::$origin (string) does not accept $this(Facture).
htdocs/expedition/class/expedition.class.php	1245	Property CommonObject::$origin (string) does not accept null.
htdocs/expedition/class/expedition.class.php	1438	Property CommonObject::$origin (string) does not accept null.
htdocs/expedition/class/expedition.class.php	2326	Property CommonObject::$origin (string) does not accept $this(Expedition).
htdocs/expedition/class/expedition.class.php	2487	Property CommonObject::$origin (string) does not accept $this(Expedition).
htdocs/fourn/class/fournisseur.commande.class.php	1283	Property CommonObject::$origin (string) does not accept $this(CommandeFournisseur).
htdocs/fourn/class/fournisseur.commande.class.php	2278	Property CommonObject::$origin (string) does not accept $this(CommandeFournisseur).
htdocs/fourn/class/fournisseur.facture.class.php	1858	Property CommonObject::$origin (string) does not accept $this(FactureFournisseur).
htdocs/fourn/class/fournisseur.facture.class.php	1999	Property CommonObject::$origin (string) does not accept $this(FactureFournisseur).
htdocs/fourn/commande/dispatch.php	435	Property CommonObject::$origin (string) does not accept CommandeFournisseur.
htdocs/fourn/commande/dispatch.php	482	Property CommonObject::$origin (string) does not accept CommandeFournisseur.
htdocs/fourn/commande/dispatch.php	489	Property CommonObject::$origin (string) does not accept CommandeFournisseur.
htdocs/reception/class/reception.class.php	582	Property CommonObject::$origin (string) does not accept $this(Reception).
htdocs/reception/class/reception.class.php	1081	Property CommonObject::$origin (string) does not accept null.
htdocs/reception/class/reception.class.php	1674	Property CommonObject::$origin (string) does not accept $this(Reception).
htdocs/reception/class/reception.class.php	1833	Property CommonObject::$origin (string) does not accept $this(Reception).
htdocs/reception/class/reception.class.php	1967	Property CommonObject::$origin (string) does not accept $this(Reception).
htdocs/takepos/invoice.php	332	Property CommonObject::$origin (string) does not accept Facture.
htdocs/takepos/invoice.php	336	Property CommonObject::$origin (string) does not accept Facture.
2024-02-22 19:25:01 +01:00
Can Arslan
2a03df95b4 FIX: duplicate with lines: 414-416 (#28358) 2024-02-22 19:17:38 +01:00
thibdrev
87a5ca7756 qual: phpstan for $fk_unit (#28359)
* Update bom.class.php

* Update commonobjectline.class.php

* Update product.class.php

* phpcs

* phpcs

* phpcs

* phpcs

* phpcs

* phpcs
2024-02-22 19:14:31 +01:00
Laurent Destailleur
838c748fae Reduce variable parts into website template so risk of git conflict is
lower
2024-02-22 17:30:54 +01:00
thibdrev
999af4951b qual: phpstan - various "$hidden (bool) does not accept string." (#28350)
* Update modWebsite.class.php

* Update DolibarrModules.class.php

* Update modCron.class.php

* Update modSocialNetworks.class.php

* qual: phpstan for htdocs/core/modules/modCollab.class.php

htdocs/core/modules/modCollab.class.php	68	Property DolibarrModules::$hidden (bool) does not accept string.
2024-02-22 13:27:04 +01:00
MDW
f1f516f54c NEW: Global constant for deprecated module mapping (#28348)
* Qual: Add another deprecated module mapping

* NEW: Global constant for deprecated module mapping
2024-02-22 13:23:39 +01:00
thibdrev
009a4856b3 qual: phpstan - various fixes (#28351)
* qual: phpstan for htdocs/compta/tva/class/paymentvat.class.php

htdocs/compta/tva/class/paymentvat.class.php	540	Property CommonObject::$tms (int) does not accept string.

* qual: phpstan - various "$enabled (int) does not accept bool."

htdocs/core/boxes/box_actions.php	54	Property box_actions::$enabled (int) does not accept bool.

htdocs/core/boxes/box_actions_future.php	54	Property box_actions_future::$enabled (int) does not accept bool.

htdocs/core/boxes/box_activity.php	53	Property box_activity::$enabled (int) does not accept string.

* qual: phpstan for htdocs/core/boxes/box_activity.php

htdocs/core/boxes/box_activity.php	53	Property box_activity::$enabled (int) does not accept string.

* qual: phpstan for htdocs/core/modules/modTakePos.class.php

htdocs/core/modules/modTakePos.class.php	284	Property Societe::$code_client (string) does not accept int.

htdocs/core/modules/modTakePos.class.php	285	Property Societe::$code_fournisseur (string) does not accept int.
2024-02-22 13:22:06 +01:00
Laurent Destailleur
757abcfaae Fix warning 2024-02-22 13:20:00 +01:00
Laurent Destailleur
8ba8b62180 Standardize field name 2024-02-22 13:11:32 +01:00
Eric
af062aa5f6 datenextrun is mandatory as dolibarr 16.0 (#28344) 2024-02-22 11:34:39 +01:00
MDW
5f9047b2e3 #FIX modulenames (#28338)
* Fix: modulename

* Fix: modulename
2024-02-22 02:45:57 +01:00
MDW
5faf933d26 #FIX modulenames (#28338)
* Fix: modulename

* Fix: modulename
2024-02-22 02:45:36 +01:00
Laurent Destailleur
ae84bf8752 Fix error if result empty 2024-02-22 02:36:21 +01:00
Laurent Destailleur
c5b0a13557 Fix warning 2024-02-22 02:27:19 +01:00
Laurent Destailleur
2807c9410f Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-22 00:19:19 +01:00
Laurent Destailleur
32d35d5443 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-02-22 00:18:42 +01:00
Laurent Destailleur
9874d008aa Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-02-22 00:16:59 +01:00
Laurent Destailleur
88da45d9dd Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2024-02-22 00:16:14 +01:00
Laurent Destailleur
a76eafa0d4 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2024-02-22 00:15:35 +01:00
Laurent Destailleur
8c2a910a94 Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2024-02-22 00:13:59 +01:00
Saami PERDRIX
52646ee9f5 fix aperçu/dl fichier quand il est dans {userid}/temp (#27211) 2024-02-22 00:10:04 +01:00
Laurent Destailleur
c396dcdfbb Fix from #27211 2024-02-22 00:09:45 +01:00