Commit Graph

1978 Commits

Author SHA1 Message Date
Laurent Destailleur
d92c65ad91 FIX infinite loop in API call/trigger by adding a caller 2023-12-15 12:15:33 +01:00
Laurent Destailleur
7d109e9419 Fix phpcs 2023-12-13 12:46:23 +01:00
Laurent Destailleur
e040219fdc Fix phpcs 2023-12-13 12:45:07 +01:00
MDW
b0414dd078 Fix utf8_encoding/decoding (rather than creating new function replacements) 2023-12-07 03:37:05 +01:00
Frédéric FRANCE
61b79fda17 avoid phpstan error with phpdoc 2023-12-06 15:46:39 +01:00
Laurent Destailleur
4daacd3371 Fix with php-cs-fixer 2023-12-04 13:49:31 +01:00
Frédéric FRANCE
53c8a3acf8
clean phpdoc for phpstan (#26905) 2023-12-01 19:51:32 +01:00
Laurent Destailleur
e4d7f97c09 Fix missing const 2023-11-28 22:33:24 +01:00
Laurent Destailleur
e8dc651877 Fix php8.2 warnings 2023-11-27 11:56:32 +01:00
Laurent Destailleur
e6eb34a8db Fiw warnings: The private array ->status_short, ->statuts and
->status_long are now array ->labelStatusShort and ->labelStatus
everywhere.
2023-11-24 10:10:24 +01:00
MDW
3c966469ef
QUAL No return values in __construct(), correct PHPDoc for typing (#26768) 2023-11-20 23:47:06 +01:00
HENRY Florian
f209cc5a94
fix: update setcost_price in htdocs/product/fournisseurs.php (#26700)
* fix: update setcost_price in htdocs/product/fournisseurs.php

* bettre fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-11-18 02:15:57 +01:00
moreauftheobald
279343ee56
Ddevelop fix product class (#26632)
* Add entity management on contact list on thirdparty card

* Correction On procduct class files "Access to an undefined property"
2023-11-16 23:26:08 +01:00
lvessiller-opendsi
5fdfa4b971
NEW order by batch number in product batch find all method (#26486)
* NEW order by batch number in product batch find all method

* Remove const PRODUCTBATCH_ORDER_BY_BATCH_NUMBER
2023-11-14 02:47:12 +01:00
Laurent Destailleur
7659bba97a Fix bad delete of lines into llx_ecm_files 2023-11-13 12:24:47 +01:00
atm-sami
53b48173f6
NEW add sorting of product price list by customer (#26483)
* added sorting of product price list by customer

* add search and sort in same time

* Update price.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-11-09 14:55:35 +01:00
andreubisquerra
0214df1fbd
fk_entrepot fix (#26465) 2023-11-06 00:36:49 +01:00
HENRY Florian
a3437c7207
fix: display details quantity in Kit in PDF #26359 (#26454)
* add detail qty in kit displayed in PDF line

* fix: #26359
2023-11-03 16:27:02 +01:00
Laurent Destailleur
f9c29489d6 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-11-01 15:52:32 +01:00
Laurent Destailleur
0562f89347 Can find a stock id from a couple batch-warehouse 2023-11-01 15:35:29 +01:00
Alexandre SPANGARO
ba458ddfd6
Review of ledger display (#26423)
* Review of ledger display

* typo

* Update listbyaccount.php

* Update listbyaccount.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-11-01 15:00:48 +01:00
Laurent Destailleur
74e1ec4099 FIX On object validation, ecm index are not updated for uploaded files 2023-10-31 19:28:11 +01:00
Laurent Destailleur
e308e0046f Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2023-10-31 12:00:29 +01:00
jyhere
d2355e91e9
NEW: add a $notrigger param to Product::updatePrice() method (#26404)
* NEW: add a $notrigger param to Product::updatePrice() method

* Update product.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-31 11:57:25 +01:00
Francis Appels
ee269b4608
FIX: update product with stock to lot or serial type. (#23002)
* git init

* Fixing style errors.

* Add split of serial defaults

* Fix remaining part

* Fix on  remaining decimal part

* Revert "Fix on  remaining decimal part"

This reverts commit b91f884ddc.

* Revert "Fix remaining part"

This reverts commit 35a6631b29.

* Revert "Add split of serial defaults"

This reverts commit 37009afcbc.

* Remove split for serial numbers and replace by error message.

* Fix stickler CI

* Fix missing product id for lot number fetch

* Allow update for data consistency, but show warning in stock card and stocks by lot/serial list

---------

Co-authored-by: Francis Appels <francis@vps399724.ovh.net.novalocal>
Co-authored-by: stickler-ci <support@stickler-ci.com>
2023-10-31 11:47:38 +01:00
Francis Appels
48ddc2408a
New allow modify stock_theorique, not only replace by hook. (#26398) 2023-10-31 11:39:28 +01:00
Laurent Destailleur
939cf8b200 FIX Popup on service ref when product module not enabled 2023-10-28 00:59:31 +02:00
Laurent Destailleur
a318031034 QUAL Standardize code. Renamed ID of user properties into ->user_xxx_id 2023-10-24 11:37:29 +02:00
Laurent Destailleur
b7de0baedd Fix phpunit 2023-10-23 18:54:16 +02:00
atm-gauthier
f46482a72a
NEW Can switch product batch management to no management. (#21691)
* NEW : When an user unset the batch management of products, transformation of each batch stock mouvement in global stock mouvement

* FIX : Alert on deserialize product

* FIX : Correction of the trad

* Fixing style errors.

* FIX : PR returns

* FIX : using llx_product_batch table

* FIX : langs

* Fixing style errors.

* FIX : $value must be an absolute value

* FIX : init $inventorycode before while loop

* Fixing style errors.

* FIX : "Yes (unique serial number required)" choice must not be available on product edit if its current status batch is "Yes (lot required)"

* Fixing style errors.

* FIX : Just display a message when we change from batch to serial

* Fixing style errors.

* Update card.php

* Update card.php

* Update product.class.php

* Update product.class.php

---------

Co-authored-by: Adrien Raze <adrien.raze@atm-consulting.fr>
Co-authored-by: stickler-ci <support@stickler-ci.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-23 18:05:21 +02:00
Laurent Destailleur
c0f04dc078 Debug v19 2023-10-17 15:51:35 +02:00
Laurent Destailleur
2cfa9f8290 Debug v19 2023-10-17 15:43:56 +02:00
Laurent Destailleur
b37a438067 The property ->user_validation to store ID of user validating has been
renamed into ->user_validation_id.
2023-10-17 11:10:25 +02:00
Laurent Destailleur
f18529f944 Clean code 2023-10-17 10:52:19 +02:00
Laurent Destailleur
2fdf26731b Fix php8 error 2023-10-16 21:35:00 +02:00
Laurent Destailleur
cdf53e402e Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2023-10-16 20:57:07 +02:00
VIAL-GOUTEYRON Quentin
61afa1c84b
NEW : conf to display date entry stock exped and sort in date order (#22625)
* NEW : Date d'entree en stock sur les exped au moment de la création

* add en trad

* Ajout conf pour la date d'entree en stock

* add trad

* trad

* Fixing style errors.

* modif for only full group by

---------

Co-authored-by: stickler-ci <support@stickler-ci.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-16 18:38:37 +02:00
Laurent Destailleur
b8c8e903c2 Fix php8.2 warnings 2023-10-15 18:39:13 +02:00
Laurent Destailleur
2e3c378ec0 Fix phpcs 2023-10-12 18:47:19 +02:00
Benjamin Falière
131fa0d52b
NEW subproduct triggers in product class (#25142)
* NEW subproduct triggers in product class

* add notrigger parameter to functions

* add doc comment for new parameters

---------

Co-authored-by: Benjamin Falière <benjamin.faliere@altairis.fr>
2023-10-12 17:50:18 +02:00
tgsw
de5b97c7e7
Show product description (#26193)
* Show product description

shows product-description on list of products when hover the product-ref

* Update product.class.php

limiting the display to 5 lines
2023-10-12 15:39:42 +02:00
Laurent Destailleur
70f6d998fb Clean code: add condition on deprecated assembly and stock kit 2023-10-12 13:06:54 +02:00
Laurent Destailleur
2d6a82a030 Clean code 2023-10-12 12:49:57 +02:00
Laurent Destailleur
8740c85ff3 The method ProductcustomerPrice->fetch_all_log() has been renamed into
camel case ->fetchAllLog()
2023-10-08 21:44:42 +02:00
Laurent Destailleur
b5036b7a0d Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2023-10-08 12:07:01 +02:00
Laurent Destailleur
1b246f694e Fix label 2023-10-08 12:04:00 +02:00
Laurent Destailleur
5411a18e1b Fix warning 2023-09-27 12:53:58 +02:00
pascal
80f060c771 fix tab indentation 2023-09-26 18:43:25 +02:00
pascal
871f896962 implementation of properties filter 2023-09-26 18:04:48 +02:00
Laurent Destailleur
44068850ae Code comment 2023-09-16 13:13:58 +02:00