* Qual: Update comments from French to English
# Qual: Update comments from French to English
* Qual: Fix missing initialisations
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
When a create action fails and rolls back, several list/card pages
restore origin parameters by assigning $_POST values directly to
$_GET. This causes 'undefined array key' warnings on PHP 8.1+ if
the POST data is missing or malformed.
Replace raw $_POST['origin'] with GETPOST('origin', 'alpha') and
raw $_POST['originid'] with GETPOSTINT('originid') which safely
handle missing parameters.
Files fixed:
- htdocs/expedition/list.php
- htdocs/fourn/commande/list.php
- htdocs/commande/list.php
- htdocs/compta/facture/card.php
- htdocs/reception/list.php
These files had TODO-style comments ('Keep this ?', 'Keep GET and
POST here ?') indicating the pattern was already questionable.
Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
* qual: Update french texts (comments) to english
* Qual: Update comment to english in card-rec.php and card.php
Translation of comments in the files card-rec.php and card.php.
* Qual: Translate comments to English
* Qual: Translate comments to English
* Fix space into tab
* Fix spelling
* Qual: Translate comments to English
* Update website.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* Fix numeric input parsing to support comma as decimal separator
GETPOSTINT() only handles integer values and fails when input uses a comma as decimal
* Update dispatch.php
* Change GETPOST to GETPOSTFLOAT for price input
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* Fix numeric input parsing to support comma as decimal separator
GETPOSTINT() only handles integer values and fails when input uses a comma as decimal
* Update dispatch.php
* Change GETPOST to GETPOSTFLOAT for price input
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
# Qual: Fix nullable value by cast (for phan)
The update method now explicitly casts the eatby and sellby fields to integers before passing them to the idate function.
Otherwise phan considers the arguments as nullable (as it can not determine the impact of dol_strlen).
* Enable create menu for standalone reception
* Enable create menu for standalone reception
* Add Reception date
* Add option to create standalone reception
* fix pre-commit