2
0
forked from Wavyzz/dolibarr
Commit Graph

2141 Commits

Author SHA1 Message Date
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
Frédéric FRANCE
b0695abca9 fix phan (#29591)
* fix phan

* fix typos and translations

* fix phan remove code doing nothing

* fix phan remove code doing nothing

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-05-03 18:01:17 +02:00
Frédéric FRANCE
f1dc60dcc7 fix phan (#29514)
* Update product_lot.php

* Update replenishment.lib.php

* Update product.class.php

* Update product.class.php

* fix phan

* fix phpstan

* fix phpstan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-28 17:25:15 +02:00
Laurent Destailleur
7c8baea64f Fix phan warnings 2024-04-28 16:09:31 +02:00
Laurent Destailleur
2929e84e86 Close #18080 Close #26957 2024-04-25 01:38:33 +02:00
Laurent Destailleur
796440459d Debug v20 2024-04-22 18:57:21 +02:00
Frédéric FRANCE
18d731e033 fix phpstan (#29365) 2024-04-17 17:25:48 +01:00
Frédéric FRANCE
d38fd51aca fix phpstan (#29363) 2024-04-16 21:35:19 +01:00
jyhere
94f6b8ce6c FIX : db transaction not rolled back if Product::setMultilangs() returns an error (#29332) 2024-04-12 12:21:03 +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
db65c11981 FIX #28541 FIX #29240 trunc barcode to avoid trespass on fichhalfright 2024-04-08 12:34:46 +02:00
Mohamed DAOUD
fcabb3d37f insert fields order (#29272) 2024-04-08 11:02:53 +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
aab69e6a1f Update api_products.class.php 2024-04-05 10:35:01 +02:00
Jon Bendtsen
650e9b8c2b Fix #29115 2024-04-04 23:22:10 +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
990216b13f NEW Api parameters are sanitized by the WAF, same code than GET/POST 2024-04-02 13:07:13 +02:00
MDW
04c3e80fc5 Fix typing 2024-03-29 18:26:48 +01:00
Laurent Destailleur
a7e33e6573 Merge pull request #29047 from mdeweerd/fix/PhanPluginUnknownObjectMethodCall1
Fixes for PhanPluginUnknownObjectMethodCall
2024-03-28 14:20:57 +01:00
Laurent Destailleur
fa4afda592 Debug v20 2024-03-28 09:55:37 +01:00
MDW
30f15eb776 Force typing (phan) for typing check 2024-03-27 10:18:12 +01:00
MDW
8c240a3337 Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, casting, idate 2024-03-23 02:06:53 +01:00
Laurent Destailleur
7b0177a84d Move to getDolGlobalString 2024-03-22 00:37:56 +01:00
Laurent Destailleur
922f30eceb Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-03-21 15:38:11 +01:00
MDW
4e22e33638 Fix $mybool |=... which is binary op, not boolean op
# Fix $mybool |=... which is binary op, not boolean op

This fixes PhanTypeInvalidLeftOperandOfBitwiseOp.
Replace $var |= ... with $var = ... || $var .
Add cast before ... when needed (@include does not always return bool).
|= always evaluates expression, there for || $var, not $var ||
2024-03-21 13:45:41 +01:00
MDW
90e1674e55 Cast to string rather than quote var 2024-03-20 21:58:40 +01:00
MDW
fda0d5b5da Fix arg type to trim() with cast 2024-03-20 04:09:42 +01:00
MDW
66129312b4 Fix arg type to trim() with cast 2024-03-20 04:09:41 +01:00
MDW
c5479f4520 Fix: Update typing for qty as float 2024-03-19 20:37:38 +01:00
Christophe Battarel
07597c4515 renaming of columns impact db access 2024-03-19 15:56:44 +01:00
MDW
fd9d48faac Fix phpstan CommonObject->fields - notnull is optional field 2024-03-19 00:32:00 +01:00
Laurent Destailleur
ebba438fbe Merge pull request #27528 from altairisfr/rdb
[DATA_MODEL] rename commande_fournisseur_dispatch into receptiondet_batch
2024-03-17 21:31:27 +01:00
MDW
9eed23c6d0 Fix return type by cast or typing update
# Fix return type by cast or typing update

Fix most PhanTypeMismatchReturn notifications.

The remaining ones are likely real bugs or need more Dolibarr
knowledge to fix them efficiently
2024-03-16 13:52:12 +01:00
Laurent Destailleur
a1b4bcbaa9 Merge pull request #28879 from atm-lena/develop_FIX_loadvirtualstockinproduction
FIX function load_stats_inproduction()
2024-03-15 19:58:49 +01:00
Laurent Destailleur
9302eb645f Update product.class.php 2024-03-15 19:57:23 +01:00
Laurent Destailleur
0ee6fd6bad Merge pull request #28877 from mdeweerd/PhanTypeMismatchDefault
Fix & enable PhanTypeMismatchDefault
2024-03-15 15:44:30 +01:00
x
8ca7789780 FIX function load_stats_inproduction() 2024-03-15 15:36:05 +01:00
Laurent Destailleur
1a722fa436 Merge branch 'develop' into fix/PhanTypeMismatchPropertyProbablyReal 2024-03-15 15:07:35 +01:00
MDW
5c9a063160 Fix PhanTypeMismatchDefault by updating default to null 2024-03-15 14:53:04 +01:00
Laurent Destailleur
3ba2ae1af5 Merge pull request #28867 from FHenry/dev_28554
NEW: Label on Price
2024-03-15 10:18:16 +01:00
MDW
3e49424f2f Fix finished can be null && defautl fk is 0 2024-03-15 10:12:44 +01:00
Florian HENRY
2b45843432 Merge branch 'develop' of https://github.com/Dolibarr/dolibarr into dev_28554 2024-03-15 09:14:43 +01:00
MDW
23785393a3 Add csslist to json keys 2024-03-15 03:55:52 +01:00
MDW
10580a9b69 Fix PhanTypeMismatchPropertyDefault 2024-03-15 03:54:03 +01:00
MDW
9d26fe1e1e Fix PhanTypeMismatchPropertyDefault 2024-03-15 03:54:02 +01:00
Laurent Destailleur
c867bc2706 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-13 22:36:45 +01:00
MDW
c90d856d6c Fix PhanPluginRedundantAssignment 2024-03-13 01:04:57 +01:00
Francis Appels
499bdea72b Fix php warning 2024-03-12 17:21:32 +01:00