2
0
forked from Wavyzz/dolibarr
Commit Graph

2810 Commits

Author SHA1 Message Date
Laurent Destailleur
84fb498ee4 Fix phan 2024-05-11 21:13:10 +02:00
lvessiller-opendsi
c44f63a8c2 FIX update price HT on expense report card (#29631) 2024-05-07 22:38:14 +02:00
Laurent Destailleur
157ca199c1 Fix regression when using DOLDeprecatedHandler. You fetch an object with
status = null in database, the we set ->status=0 and ->statut=0, then we
call update(), calling the updateCommon(). Inside the updateCommon that
is into commObject.class.php, the ->status is 0 but ->statut is null
making the update saving null instead of 0.
2024-05-06 20:35:26 +02:00
Lucas Marcouiller
85a635d17a New add multiinput for text type fields (#29555)
* New add multiinput for text type

* fix CI

* fix some code + add $value persistance

* fix some things to be more global

---------

Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-05-05 02:52:14 +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
Laurent Destailleur
642a3d5984 Fix regression 2024-05-03 01:28:19 +02:00
Laurent Destailleur
5e50b4aa2e Fix restore line lost 2024-05-02 23:21:06 +02:00
MDW
2115980560 Qual: Fix Phan notices in CommonObject (#29354)
* Fix PhanPluginSimplifyExpressionBool in commonobject

* Fix commonobject for phan notices

* Allow null for $usedolidb argument

* Allow null for $outputlangs argument of \dol_format_address()

* Fix multiple phan notices

* Ignore PhanTypeArraySuspiciousNullable

* Fix PhanTypeMismatchArgumentProbablyReal

* Update baseline

* Improve typings

* Update type specification getCountry/withCode

* Fix CommonObject Phan notices & update baseline

* Fix phan notices

* Correct typing for showInputField to be the same as parent class

* Fix PhanPluginSimplifyExpressionBool in commonobject

* Fix commonobject for phan notices

* Allow null for $usedolidb argument

* Allow null for $outputlangs argument of \dol_format_address()

* Fix multiple phan notices

* Ignore PhanTypeArraySuspiciousNullable

* Fix PhanTypeMismatchArgumentProbablyReal

* Update baseline

* Improve typings

* Update type specification getCountry/withCode

* Fix CommonObject Phan notices & update baseline

* Fix phan notices

* fixup! Correct typing for showInputField to be the same as parent class
2024-05-02 19:33:51 +02:00
Laurent Destailleur
cc90397eb7 Try suggestion of mdeweerd 2024-05-02 13:14:30 +02:00
Laurent Destailleur
4dbed777eb More info in tooltip 2024-05-01 19:33:14 +02:00
Laurent Destailleur
9e654e65dd Debug v20 2024-04-29 11:04:19 +02:00
Laurent Destailleur
6994a787bd Doc 2024-04-27 13:35:35 +02:00
Laurent Destailleur
145b555960 Fix warning 2024-04-25 10:28:29 +02:00
Laurent Destailleur
0c54fe40a6 Doc 2024-04-25 10:23:28 +02:00
Frédéric FRANCE
7ea6a406bd NEW add geometrics extrafield (#28239)
* add extrafield point

* wip

* wip

* wip

* input

* input

* output values

* update values

* update values

* update values

* update values

* update values

* wip

* add geomapeditor

* add geomapeditor

* add linestring and polygon

* add linestring and polygon

* add linestring and polygon

* add linestring and polygon

* wip

* wip

* can store and retrieve linestring

* can store and retrieve linestring

* coordinates are inverted

* coordinates are inverted

* add multipoints

* use text instead binary

* auto center map

* wip

wip

* doc

* fix

* wip

* wip

* translation dynamic

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-24 15:27:38 +02:00
Laurent Destailleur
60c0fc2386 Fix warning PHP 8.2 2024-04-22 18:42:34 +02:00
Laurent Destailleur
f94d0cd907 Debug v20 2024-04-20 14:28:59 +02:00
Laurent Destailleur
1946b92da8 Debug v20 2024-04-19 16:32:56 +02:00
Laurent Destailleur
c5751a970a Fix CSS 2024-04-19 01:39:48 +02:00
Laurent Destailleur
0ee92c5a4b Doc 2024-04-17 12:42:33 +02:00
lvessiller-opendsi
b64df30cc6 NEW update price with auto to use const for rounding prices (#29350)
* NEW update price with auto to use MAIN_ROUNDOFTOTAL_NOT_TOTALOFROUND const for rounding prices

* Update price forced rounding mode redundant
2024-04-16 10:24:55 +02:00
Laurent Destailleur
c13cafab68 Doc 2024-04-14 04:45:29 +02:00
Laurent Destailleur
1a07a7f6c9 Doc 2024-04-14 03:21:17 +02:00
Laurent Destailleur
fd9475be03 Use same doc comment eveywhere. 2024-04-07 12:26:27 +02:00
Frédéric FRANCE
00b2185813 fix phpstan (#29258)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-04-07 11:50:26 +02:00
Frédéric FRANCE
87b76db460 fix phpdoc (#29246) 2024-04-06 13:35:04 +02:00
thibdrev
2302708c98 typo 2024-04-04 20:51:46 +02:00
thibdrev
0dc1527064 Update commonobject.class.php 2024-04-04 20:49:16 +02:00
Laurent Destailleur
6004d3ae14 Merge pull request #29204 from mdeweerd/fix/projet_abs
Fix fatal (PHP8.X) type issue with abs, and amend dol_eval return type
2024-04-03 02:06:52 +02:00
Laurent Destailleur
8b916b6269 Restore deprecation 2024-04-03 01:56:17 +02:00
Laurent Destailleur
d03a926238 Clean code. Reduce warning for deprecated field to a better blanced
level, as we should start soon the beta.
2024-04-03 00:51:18 +02:00
MDW
44f4261cf9 Fix phan notice by verifying value is array 2024-04-02 23:30:54 +02:00
Laurent Destailleur
b58e439a17 Clean use of $_POST 2024-03-28 21:29:02 +01:00
Laurent Destailleur
1d125bf9fa Merge pull request #29065 from mdeweerd/fix/dol_print_error
Fix arguments to dol_print_error
2024-03-28 13:35:44 +01:00
Laurent Destailleur
415e99606d Merge pull request #29091 from mdeweerd/fix/facturefournisseur/card
Fix card FactureFournisseur
2024-03-28 12:55:24 +01:00
Laurent Destailleur
0544670ac4 Merge pull request #28160 from mdeweerd/core/deprecationclass
NEW: DolDeprecationHandler for deprecations
2024-03-28 12:42:53 +01:00
MDW
b84281d285 Improve phpdoc typing 2024-03-27 19:26:27 +01:00
MDW
975243f1b5 Fix: Ensure DiscountAbsolute->fk_soc deprecation is possible
# Fix: Ensure DiscountAbsolute->fk_soc deprecation is possible

Assign socid whenever fk_soc is assigned so that socid can be accessed
instead of fk_soc.
2024-03-27 18:07:51 +01:00
MDW
a99853efd3 Fix arguments to dol_print_error 2024-03-27 10:23:40 +01:00
Laurent Destailleur
92312ce4c2 Allow UFS syntax into load_previous_next_ref() 2024-03-25 20:11:24 +01:00
MDW
8f3b245dbd New: Use DolDeprecationHandler in CommonObject
# New: Use DolDeprecationHandler in CommonObject

Use deprecation handler for more efficient deprecations
2024-03-24 17:39:04 +01:00
Laurent Destailleur
072c3070b3 Add phpunit for Expedition 2024-03-24 06:23:56 +01:00
Laurent Destailleur
59c87c7cb6 Clean usage of ->origin_object instead of ->origin that was a string. 2024-03-24 06:12:18 +01:00
MDW
886b4c8cc1 Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, casting, idate 2024-03-23 02:06:39 +01:00
MDW
53c628f219 Cast DolEditor::Create to string to avoid mistyping as void 2024-03-20 23:54:33 +01:00
MDW
dacf116d07 Fix arg type for abs(), str_replace() with casts 2024-03-19 20:38:50 +01:00
MDW
7cc1894893 Fix type of param to fix strtoupper typing 2024-03-19 02:59:04 +01:00
MDW
f43fd7c934 Fix PhanTypeSuspiciousStringExpression 2024-03-19 02:43:19 +01:00
MDW
9730149fab Fix typing: childtables can also be list of strings 2024-03-19 00:32:07 +01:00
MDW
fd9d48faac Fix phpstan CommonObject->fields - notnull is optional field 2024-03-19 00:32:00 +01:00