# Qual: Fix misuse of Mo->error
Phan identified that ++ was performed on Mo->error which is a string.
This fixes that by using a local $error variable (as in another
function).
# Qual: Fix phan notices
Some type hints updates + correction to get week from date (action/pertype.php)
+ check that value is not null (pdf_* classes).
* FIX#35766: Update buying price INT Float
loose Decimals
.
* Fix: keep fk_product_fournisseur_price as int; treat buying price as float (no truncation) [#35766]
* Updated per feedback: keep fk_product_fournisseur_price as ?int (rowid) and as float.
Adjusted FactureRec::updateline PHPDoc to ?int and float|'' (model still normalizes via price2num).
Tested on a recurring line: decimals preserved, FK stored as int, CI green. Minor adjustments before v22 backport
* Delete .hooktest
* Delete dev/tools/pre-commit/README.md
* Delete test/phpunit/phpunit.xml
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* FIX#35766: Update buying price INT Float
loose Decimals
.
* Fix: keep fk_product_fournisseur_price as int; treat buying price as float (no truncation) [#35766]
* Updated per feedback: keep fk_product_fournisseur_price as ?int (rowid) and as float.
Adjusted FactureRec::updateline PHPDoc to ?int and float|'' (model still normalizes via price2num).
Tested on a recurring line: decimals preserved, FK stored as int, CI green. Minor adjustments before v22 backport
* Delete .hooktest
* Delete dev/tools/pre-commit/README.md
* Delete test/phpunit/phpunit.xml
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* Fix#35700 : Throw an error when validating a propal, order, supplier proposal, supplier order if some products doesn't have the good status (on sale, on buy)
* Fix#35700 : Throw an error when validating a propal, order, supplier proposal, supplier order if some products doesn't have the good status (on sale, on buy)
* Fix#35700 : Throw an error when validating a propal, order, supplier proposal, supplier order if some products doesn't have the good status (on sale, on buy)
* Fix#35700 : Throw an error when validating a propal, order, supplier proposal, supplier order if some products doesn't have the good status (on sale, on buy)
* Fix#35700 : Throw an error when validating a propal, order, supplier proposal, supplier order if some products doesn't have the good status (on sale, on buy)
* Update commonobject.class.php
* Refactor checkActiveProductInLines method
* Fix comment formatting in commonobject.class.php
* Update commonobject.class.php
---------
Co-authored-by: vmaury <vmaury@vmaury-Lafite-Pro-16-AMD>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* New fetch member to redirect to membership payment
* add constant
* fix CI
* Update new.php
* Fix formatting of conditional check for member search
---------
Co-authored-by: Lucas Marcouiller <lmarcouiller@dolicloud.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* Add configuration for default timesheet menu
Using PROJECT_OPEN_ALWAYS_ON_TIMESHEET config, you can use variables "perweek" (default), "perday" or "permonth"
* Update eldy.lib.php
* Fix default value for optionTimesheet variable
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>