Skip to content

Commit

Permalink
Merge pull request #25182 from atm-maxime/16.0
Browse files Browse the repository at this point in the history
FIX : decimal values were not possible on shipment quantities (introduced by #24882)
  • Loading branch information
eldy authored Jun 23, 2023
2 parents 137399a + 301311f commit 680024d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/expedition/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
}
}
} else {
if (GETPOST($qty, 'int') > 0 || (GETPOST($qty, 'int') == 0 && !empty($conf->global->SHIPMENT_GETS_ALL_ORDER_PRODUCTS))) {
if (GETPOST($qty, 'int') > 0 || !empty($conf->global->SHIPMENT_GETS_ALL_ORDER_PRODUCTS)) {
$ent = "entl".$i;
$idl = "idl".$i;
$entrepot_id = is_numeric(GETPOST($ent, 'int')) ?GETPOST($ent, 'int') : GETPOST('entrepot_id', 'int');
Expand All @@ -357,7 +357,7 @@
$entrepot_id = 0;
}

$ret = $object->addline($entrepot_id, GETPOST($idl, 'int'), GETPOSTINT($qty), $array_options[$i]);
$ret = $object->addline($entrepot_id, GETPOST($idl, 'int'), price2num(GETPOST($qty, 'alpha'), 'MS'), $array_options[$i]);
if ($ret < 0) {
setEventMessages($object->error, $object->errors, 'errors');
$error++;
Expand Down

0 comments on commit 680024d

Please sign in to comment.