Commit Graph

39551 Commits

Author SHA1 Message Date
Laurent Destailleur
2de0c09e8e Try a better fix for #27477 2024-01-13 15:44:37 +01:00
Frédéric FRANCE
4e651f44c9 fix phpstan (#27476) 2024-01-13 15:36:38 +01:00
Frédéric FRANCE
b2af85a9be fix phpstan (#27475)
* fix phpstan

* Update mod_codeproduct_leopard.php
2024-01-13 15:35:55 +01:00
Frédéric FRANCE
c5db3e2d8f fix phpstan (#27482) 2024-01-13 15:32:37 +01:00
Frédéric FRANCE
677109df41 fix phpstan (#27483)
* fix phpstan

* fix phpstan
2024-01-13 15:32:07 +01:00
Laurent Destailleur
a3e354c9b0 Fix phan report 2024-01-12 22:19:59 +01:00
Laurent Destailleur
e2c91e67a0 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-01-12 21:41:20 +01:00
Laurent Destailleur
569d9426d7 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-01-12 21:40:51 +01:00
Laurent Destailleur
523279f028 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-01-12 21:35:15 +01:00
thibdrev
96383a10a5 qual: move the function checking the syntax of Spanish Tax Identification Numbers (CIF, NIF, NIE) to profid.lib.php (#27472)
* qual: Move the function checking Spanish Tax Identification Numbers from societe.class.php to profid.lib.php

Create the function isValidTinForES($str)

* qual: Update societe.class.php using function isValidTinForES($str) from profid.lib.php

* phpcs

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-01-12 20:59:42 +01:00
Laurent Destailleur
00903a7672 Fix phpstan 2024-01-12 20:55:40 +01:00
Frédéric FRANCE
0d3e0c8ec4 fix incorrect case and remove exclude check (#27449) 2024-01-12 20:40:34 +01:00
Lucas Marcouiller
43e82eff70 Fix funnel of prospection to have a minimum value (#27426)
Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
2024-01-12 19:54:30 +01:00
Laurent Destailleur
f201692001 Fix phpstan 2024-01-12 19:50:22 +01:00
Frédéric FRANCE
b7846ac9d1 fix phpdoc (#27430) 2024-01-12 18:02:28 +01:00
Frédéric FRANCE
356a1a882f fix phpdoc (#27431) 2024-01-12 18:02:05 +01:00
Frédéric FRANCE
662a55ece8 fix phpdoc (#27432) 2024-01-12 18:01:50 +01:00
Frédéric FRANCE
0a9657ac60 fix phpdoc (#27433) 2024-01-12 18:01:36 +01:00
thibdrev
dd2a3c05d9 qual: move into profid.lib.php the code checking the idprof1 syntax for BE, DZ and PT (#27443)
* qual: Update profid.lib.php - move functions checking profid from societe.class.php

- One function checking the Tax Identification Number for PT (called NIF)
- One function checking the Tax Identification Number for DZ (called NIF)
- One function checking the Tax Identification Number for BE (called NN)

* qual: Update societe.class.php - use the isValidTinXX() functions from profid.lib.php

isValidTinForPT($this->idprof1)
isValidTinForDZ($this->idprof1)
isValidTinForBE($this->idprof1)

* typo
2024-01-12 17:53:29 +01:00
William Mead
4ef13a2196 Fixed method filter argument type. Cleaned code. Added contributor details. (#27464)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-01-12 17:52:49 +01:00
Laurent Destailleur
c406d9a002 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-01-12 17:49:00 +01:00
Laurent Destailleur
618a364064 FIX #27439 but using the opposite direction. int is bette as we can evolve to add a third value in a future. 2024-01-12 17:47:54 +01:00
Frédéric FRANCE
45d47d1dc9 fix phpstan (#27444) 2024-01-12 17:15:39 +01:00
Laurent Destailleur
1c86073a9e Fix phpcs 2024-01-12 17:06:22 +01:00
John BOTELLA
58cf5609ca FIX php 8.2 warning (#27465)
* fix php 8.2 warning

* Fix warning
2024-01-12 17:03:57 +01:00
Frédéric FRANCE
09daa41a1e remove use not used (#27463)
* remove use not used

* Update website.lib.php
2024-01-12 16:48:29 +01:00
Laurent Destailleur
f03eb1f505 Fix restore old code due to regression on some lang.
Add hidden PDF_USE_GETALIASNBPAGE_FOR_TOTAL for the case it bugs
2024-01-12 16:47:09 +01:00
Christophe Battarel
3e7cf0a463 fix pdf nbpages (#27457)
Co-authored-by: Christophe Battarel <christophe@altairis.fr>
2024-01-12 16:14:15 +01:00
Laurent Destailleur
cc5838c0d0 Add method getNbOfImagePublicURLOfObject() 2024-01-12 16:12:23 +01:00
Laurent Destailleur
32f0443289 Rename into getImagePublicURLOfObject 2024-01-12 13:45:10 +01:00
Laurent Destailleur
aba9afe9f1 NEW Add method getPublicImageOfObject() for website module 2024-01-12 13:05:28 +01:00
Laurent Destailleur
866b44e34e Debug v20 2024-01-11 14:37:32 +01:00
Laurent Destailleur
2a4578ef68 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-01-11 13:48:15 +01:00
Laurent Destailleur
34f5c1e293 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-01-11 13:47:14 +01:00
Laurent Destailleur
a3a62570a9 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-01-11 13:45:26 +01:00
Laurent Destailleur
64fb9d0db7 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-01-11 13:45:16 +01:00
thibdrev
d3416b864c Fix: SIRET syntax check - Handle the specific case of "La Poste" businesses (#27418)
* fix: SIRET syntax check - Handle the specific case of "La Poste" businesses

* phpcs

* phpcs

* typo
2024-01-11 12:49:39 +01:00
Laurent Destailleur
b534c40f13 Use id in index 2024-01-11 12:46:05 +01:00
Laurent Destailleur
1647e4f133 Debug the filter on VAT type 2024-01-11 12:38:01 +01:00
Laurent Destailleur
52dfdbc7ad Merge branch 'develop' into 18a3 2024-01-11 11:27:10 +01:00
Laurent Destailleur
e4360d181b Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-01-11 10:53:58 +01:00
dev2a
7021cb2246 NEW Simplify the verification of context in hook (#27105)
* NEW Simplify the verification of context in hook

* Add return false after array loop
2024-01-11 10:50:45 +01:00
Laurent Destailleur
a9e43d0c9d Doc 2024-01-11 10:44:43 +01:00
Christophe Battarel
42162ac024 NEW allow [] in dol_eval (#27290)
* allow []

* fix dol_eval call to authorize brackets

* ad dparam to verifCond

---------

Co-authored-by: Christophe Battarel <christophe@altairis.fr>
2024-01-11 10:28:37 +01:00
Frédéric FRANCE
746c2366a1 fix #27256 (#27318)
* fix #27256

* Update functions.lib.php
2024-01-11 10:17:50 +01:00
thibdrev
f9a5b9a6dd qual: Update profid.lib.php - use the Luhn agorithm instead within isValidSiren() and isValidSiret() (#27405) 2024-01-11 10:14:06 +01:00
MDW
2057731e77 Fix most detected spelling errors + some translations (#27406) 2024-01-11 10:07:43 +01:00
MDW
58ba3e31fa Qual: Fix spelling for crypted and referer (#27408)
# Qual: Fix spelling for crypted and referer.

The proper spelling is encrypted and referrer, but the code has
some occurences where referer and crypted need to be maintained.

To make verification easier, this spelling correction is limited to
mostly these corrections and some minor translations and a only a
few other corrections.

crypted and referer are added as exceptions for spelling after this fix.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-01-11 10:07:06 +01:00
MDW
b09f379bd6 Qual: spelling in html.form (#27407)
# Qual: Fix spelling in htdocs/core/class/html.form.class.php .

Most changes are in the text, and some translations made of comments.

 is changed to , and var was unused.
'clas=tagd is changed to class=tagd', slight possibility of visual impact.
 is changed to , but used locally in foreach loops.
2024-01-11 10:03:08 +01:00
MDW
d7fc7b408f Qual: Spelling commonobject (#27409)
# Qual: Fix spelling in commonobject.class.php.

Most corrections are in comments.
Variable  was changed to  and is local to the file.
Some comments were translated.
Variable  was changed to , used locally.
2024-01-11 10:00:48 +01:00