Frédéric FRANCE
0b1d243a7a
add translations count ( #31398 )
2024-10-15 15:39:29 +02:00
MDW
53cfbc35be
Qual: Fix several phan & stan notices ( #31308 )
...
* Qual: Fix several phan & stan notices
# Qual: Fix several phan & stan notices
Several fixes in files while fixing UnknownClass notices
* Qual: Update prepare_head PHPDoc return types
# Qual: Update prepare_head PHPDoc return types
Provide detailed array return types for prepare_head functions.
* Fix new phan notice
* Better loadLangs typing and fix call to loadLangs
* Fix new issues (stats)
* Other fixes of new issues
* Qual: update phan baseline
2024-10-14 01:59:44 +02:00
Laurent Destailleur
58cc96cd33
QUAL All $conf->global->module->enabled are replaced with isModEnabled()
2024-10-07 14:40:29 +02:00
MDW
f70c945931
Qual: Fix phan/stan notices ( #31271 )
...
# Qual: Fix phan/stan notices in relation with UnknownObjectMethodCall
Fix notices in classes with UnknownObjectMethodCall notices or classes
related with these.
2024-10-05 18:55:36 +02:00
MDW
8236aed22f
Qual: Fix phan notices ( #31193 )
...
# Qual: Fix phan notices
Fix phan notices in several classes that have UnknownObjectMethod calls and classes
that had notices in relation with these classes
2024-09-30 10:05:24 +02:00
Frédéric FRANCE
a760fc0092
fix phpstan ( #31189 )
...
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
2024-09-29 21:51:51 +02:00
Frédéric FRANCE
4a25c28968
add phpdoc ( #31149 )
2024-09-26 22:57:35 +02:00
dolibarr95
f2c92a35ec
Update sql queries ( #31137 )
...
Replace the values :
commande : $this->commande
table_element : $this->table_element_line
in the sql queries.
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-09-26 17:10:25 +02:00
MDW
5e02bec9df
Qual: Fix getTooltipContentArray typing hints ( #31081 )
...
* Qual: Fix getTooltipContentArray typing hints
# Qual: Fix getTooltipContentArray typing hints
This defines the aray type for all getTooltipContentArray occurences
* Ignore undeclared property ref_supplier (does not exist on OrderLine)
2024-09-23 03:24:19 +02:00
Frédéric FRANCE
13d4d96dfc
fix phpstan ( #31061 )
...
* fix phpstan
* fix phpstan
2024-09-20 17:25:39 +02:00
Laurent Destailleur
b180beba04
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-09-16 12:03:13 +02:00
Laurent Destailleur
697bf01970
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
2024-09-16 12:01:04 +02:00
Laurent Destailleur
b0fe6a0b1f
Merge v18
2024-09-16 11:56:23 +02:00
MDW
76eaf8bd8d
Qual: Fix phan notices in classes related to class using getNextValue. ( #30925 )
...
* FIX 🛟 phan
* getToolTip() can take null for $coc
* Fix uninitialized vars & arg types
* PHPDoc typing, argument fixes
* PHPDoc typing, argument fixes for AdherentType
* PHPDoc typing, argument fixes for AdherentStats
* Update baseline to enable adherent notices
* Fix PHPDoc typing in api_members
* Minor bug fixes, typing
* PHPDoc api_subscriptions
* PHPDoc Societe
* Ignore empty foreach notice
* Add initialiser
* Categorie is string, old int mode is deprecated
* Fix missing initialisations
* Fix missing initialisations adherents/note
* Fix typing (cast), initialisation of var
* Fix initialisations
* Fix argument types
* Improve array PHPDoc type
* PHPDoc array type
* PHPDoc: Improve typing
* Correct argument type to getNomUrl
* Improve typing for timespent
* Fix typing for getNextValue args
* Improve typing
* Fix typing hints contrat/card
* Update baseline
* Fix typing
* Fix extraparams property typing
* Fix argument typing
* Qual: Correct covariant type
* Impove typing for timespent
* Remove exclusion no longer matched (level 6)
---------
Co-authored-by: Frédéric FRANCE <frederic34@users.noreply.github.com >
2024-09-12 21:16:42 +02:00
Regis Houssin
910daa24aa
FIX wrong subprice if price base type is TTC ( #30887 )
2024-09-09 04:26:22 +02:00
William Mead
ca3f55cc31
Qual isolate OrderLine class to separate file ( #30840 )
...
* Moved OrderLine class to separate file
* Removed unnecessary requires
* Updated PHPDoc
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-09-04 23:01:53 +02:00
MDW
c496e84916
Qual: Fix phan issues related to getNextValue() notices ( #30747 )
...
* Qual: 🛟 Fix reference to $db with $this->db
# Qual: reference to $db with $this->db
$db was undeclared, use $this->db.
* Fix suspected issue with environment max size and md5sum working on limited files
* Qual: Fix LDAP typing
* Qual: Fix some phan typing related to getNextValue()
# Qual: Fix some phan typing related to getNextValue()
This fixes a few typings in relation to getNextValue().
* Update phan baseline
* PHPDoc: set arguments as nullable (+update array types)
* Improve PHPDoc
* Force toselect type to int[]
* Enable all phan notices on actions_massactions.inc.php
* Test was wrong, can not count when it's not an array
* Update baseline
* Remove ignore for notice that no longer exists
* Update baseline
* Fix format argument
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-08-29 15:01:42 +02:00
MDW
ca414de526
Qual: Fix $fields related notices with Phan ( #30704 )
...
* Qual: Typing hints/ignore directives for phan notices
* Update field typing
2024-08-21 13:23:35 +02:00
MDW
54880f92cd
Qual: Fix PhanTypeMismatchProperty and some other phan notices ( #30542 )
...
* Qual: Fix PhanTypeMismatchProperty and some other phan notices
* Qual: Phan fixes for BOM
* Phan - fix fields
* fixup! Qual: Phan fixes for BOM
* Fix phpstan double array keys for syslog
* Fix $fields phpdoc
* Fix phan typing issues with intermediate var and ??
* Fix phan typing issue with ?? operator
* Ignore htdocs/install/install.forced.php for git
* Qual: Revert to original code, ignore notice
When changing the method to avoid one notice type, another one
appears. So simply ignoring this error.
* Qual: Revert to original code, ignore notice
When changing the method to avoid one notice type, another one
appears. So simply ignoring this error.
* Update baseline
* Qual: Phan fixes for BOM
* fixup! Qual: Phan fixes for BOM
* Fix phpstan double array keys for syslog
* Qual: Revert to original code, ignore notice
When changing the method to avoid one notice type, another one
appears. So simply ignoring this error.
* Ignore PhanTypeSuspiciousNonTraversableForeach to allow integration
* Fix typing hints (phpstan)
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-08-15 17:05:00 +02:00
MDW
45ed4caeb2
Qual: Enable Phan Simplify rule and fix notices ( #30537 )
...
* Qual: Phan - Enable Simplyfy expression
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Qual: Simplify expression (phan notice)
* Update functions2.lib.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-08-07 03:05:02 +02:00
Laurent Destailleur
e1117a9a67
Merge remote-tracking branch 'origin/20.0' into develop
2024-08-07 02:14:27 +02:00
Laurent Destailleur
af4763d259
Merge remote-tracking branch 'origin/19.0' into 20.0
2024-08-07 01:30:57 +02:00
Laurent Destailleur
a11a477b90
Merge remote-tracking branch 'origin/18.0' into 19.0
2024-08-07 01:29:44 +02:00
MDW
d6948077b2
Qual: Fix spelling/update .pre-commit configuration (versions) ( #30546 )
...
* Qual: Update pre-commit configuration
* Qual: Update spelling
* Ignore use of deprecated constant
2024-08-07 01:20:43 +02:00
HENRY Florian
650fa5ef1d
fix: add missing fetch_optionals() call on OrderLine fetch method ( #30560 )
2024-08-07 00:09:27 +02:00
Laurent Destailleur
38d8d30c85
Code comment
2024-07-25 13:59:12 +02:00
Christophe Battarel
97b4093d22
FIX : allow setDraft on cancelled orders if ORDER_REOPEN_TO_DRAFT is set ( #30396 )
...
* Fix missing loading trans file
* FIX : allow setDraft on cancelled orders if ORDER_REOPEN_TO_DRAFT is set
---------
Co-authored-by: Laurent Destailleur <eldy@users.sourceforge.net >
Co-authored-by: Christophe Battarel <christophe@altairis.fr >
2024-07-16 21:54:04 +02:00
Shanty
8c4f3534cc
NEW #28871 signed_status to commande ( #30359 )
...
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-07-16 15:22:54 +02:00
Rémi Champlon
d2907b68c0
NEW : Add pagination data to some api routes ( #29895 )
...
* Add pagination date
* Spaces to tabs
* fix
2024-07-06 15:04:11 +02:00
Frédéric FRANCE
2f5647e4e3
fix checkFunctionArgumentTypes ( #30234 )
...
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* add ignore
* add ignore
add ignore
add ignore
add ignore
add ignore
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
* fix checkFunctionArgumentTypes
2024-07-03 02:30:53 +02:00
Laurent Destailleur
965e53553a
FIX Draft invoices must be excluded from stats and widgets
2024-07-01 03:40:31 +02:00
Frédéric FRANCE
f8a34e7489
phpdoc ( #30209 )
...
* phpdoc
* phpdoc
* phpdoc
* phpdoc
2024-06-30 21:04:19 +02:00
Frédéric FRANCE
93e111a615
fix phpstan is falsy ( #30016 )
2024-06-15 16:03:53 +02:00
Zephyriony
c329e4446c
Update commande.class.php ( #29823 )
...
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-06-04 10:52:47 +02:00
Frédéric FRANCE
652c8526fa
fix cti ( #29813 )
...
* fix cti
* fix cti
* no photo in asset lines
* no photo in asset lines
* no photo in asset lines
* no photo in asset lines
* no photo in recruitment lines
* no photo in recruitment lines
* fix
* fix dead catch
2024-06-03 13:44:14 +02:00
dono
1ba32d6767
v0.1 ( #29772 )
2024-06-01 01:22:06 +02:00
Laurent Destailleur
16336a66ad
Rename french module name into english
2024-05-13 10:45:20 +02:00
Frédéric FRANCE
d0830b3159
fix phpstan ( #29602 )
...
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix travis
* fix phpstan
* fix phpstan
* fix phan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
fix phpstan
fix phpstan
fix phpstan
fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix travis
* fix phpstan
* fix phpstan
* fix phpstan
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-05-05 00:34:19 +02:00
Zephyriony
6f524405af
QUAL Rename column fk_origin_line on shipment lines into fk_elementdet to match a generic use. ( #28989 )
...
* Update expedition.class.php
Adapting the query and code to the new table format
* Update llx_expeditiondet.sql
* Update expedition.class.php
* Update expedition.class.php
* Update expedition.class.php
* Update expedition.class.php
* Update expedition.class.php
* Update expedition.class.php
* Update expedition.class.php
* Update expedition.class.php
* Update expedition.class.php
* Update llx_expeditiondet.sql
* Update expedition.class.php
* rename fk_origin_line to fk_elementdet
* rename fk_origin_line to fk_elementdet
* rename fk_origin_line to fk_elementdet
* rename fk_origin_line to fk_elementdet
* rename fk_origin_line to fk_elementdet
* rename fk_origin_line to fk_elementdet
* rename fk_origin_line to fk_elementdet
* rename fk_origin_line to fk_elementdet
* rename fk_origin_line to fk_elementdet
* rename fk_origin_line to fk_elementdet
* Update expedition.class.php
* Update expedition.class.php
* rename fk_origin_line to fk_elementdet
* rename fk_origin_line to fk_elementdet
* Update 19.0.0-20.0.0.sql
---------
Co-authored-by: sonikf <93765174+sonikf@users.noreply.github.com >
2024-04-08 12:44:49 +02:00
Laurent Destailleur
b5de782c6b
Fix use the good HTTP code
2024-04-07 14:59:25 +02:00
Laurent Destailleur
fd9475be03
Use same doc comment eveywhere.
2024-04-07 12:26:27 +02:00
Laurent Destailleur
38fb00489d
PHPDoc
2024-04-05 13:44:59 +02:00
Laurent Destailleur
0fe0cd7c01
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-04-04 11:39:02 +02:00
Laurent Destailleur
404ba88107
Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0
2024-04-04 11:19:45 +02:00
Laurent Destailleur
7715513ac9
Some API HTTP return code were moved from 401 to 403 to better follow
...
REST specification.
2024-04-02 14:47:49 +02:00
Laurent Destailleur
51f862ad28
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
...
develop
2024-04-02 13:21:00 +02:00
Laurent Destailleur
990216b13f
NEW Api parameters are sanitized by the WAF, same code than GET/POST
2024-04-02 13:07:13 +02:00
Jon Bendtsen
d12f90b4d3
will allow updating 1 orders single Complementary Attribute without specifying complementary attributes that we don't want to change. Similar to # 29115 but just for orders
2024-04-01 10:08:02 +02:00
Regis Houssin
85a08a9288
FIX sometimes a string type instead integer is return, why ?
2024-03-31 19:17:58 +02:00
Zephyriony
b9c50507ad
Fix Order bug
...
Fixed the bug that caused the update() function to delete the contents of the fk_user_author field and leave the fk_user_modif field empty.
2024-03-28 13:00:59 +01:00