Commit Graph

2132 Commits

Author SHA1 Message Date
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
Ferran Marcet
6679565638 Fix: Error in the treatment of the date and the name of the variable 2024-03-12 17:01:59 +01:00
Laurent Destailleur
a6926c29c0
Merge pull request #28778 from fappels/develop_fix_delivery_note
Fix shipping is not a delivery_note (is sub module of shipping)
2024-03-12 14:53:51 +01:00
Laurent Destailleur
9e16016125
Merge pull request #28770 from mdeweerd/typing/fields
Fix: Repeat fields typing in CommonClass children
2024-03-12 14:30:36 +01:00
Ferran Marcet
2ee52c1659 Fix: Error in the SQL to update the stock from batch to non-batch management 2024-03-12 13:44:19 +01:00
MDW
88d59896ec
Qual: 'enabled' in fields can be string ('isModEnabled(...)')
# Qual: 'enabled' in fields can be string ('isModEnabled(...)')

Update PHPdoc to allow that enabled is a string
2024-03-12 13:38:08 +01:00
Francis Appels
7ff68a5819 Fix shipping is not a delivery_note (sub module of shipping) 2024-03-12 11:07:18 +01:00
MDW
303d0ef679
Qual: Fix PHPdoc to match parent 2024-03-11 22:25:57 +01:00
MDW
d55ebea8fb
Fix: Repeat fields typing in CommonClass children
# Fix: Repeat fields typing in CommonClass children

phpstan needs typing to be 'co-variant' and therefore typing must be repeated as
the method is not to initialise the property in the constructor, but to override
the proparty by a 'local' definition in the child class
2024-03-11 17:40:05 +01:00
MDW
37b466a135
Fix: Repeat fields typing in CommonClass children
# Fix: Repeat fields typing in CommonClass children

phpstan needs typing to be 'co-variant' and therefore typing must be repeated as
the method is not to initialise the property in the constructor, but to override
the proparty by a 'local' definition in the child class
2024-03-11 17:40:03 +01:00