cannot enter a quantity with a comma
This commit is contained in:
parent
111e5ba3f0
commit
3d1595e21b
@ -11,7 +11,7 @@
|
|||||||
* Copyright (C) 2015 Claudio Aschieri <c.aschieri@19.coop>
|
* Copyright (C) 2015 Claudio Aschieri <c.aschieri@19.coop>
|
||||||
* Copyright (C) 2016-2018 Ferran Marcet <fmarcet@2byte.es>
|
* Copyright (C) 2016-2018 Ferran Marcet <fmarcet@2byte.es>
|
||||||
* Copyright (C) 2016 Yasser Carreón <yacasia@gmail.com>
|
* Copyright (C) 2016 Yasser Carreón <yacasia@gmail.com>
|
||||||
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
* Copyright (C) 2018-2022 Frédéric France <frederic.france@netlogic.fr>
|
||||||
* Copyright (C) 2020 Lenin Rivas <lenin@leninrivas.com>
|
* Copyright (C) 2020 Lenin Rivas <lenin@leninrivas.com>
|
||||||
* Copyright (C) 2022 Josep Lluís Amador <joseplluis@lliuretic.cat>
|
* Copyright (C) 2022 Josep Lluís Amador <joseplluis@lliuretic.cat>
|
||||||
*
|
*
|
||||||
@ -265,7 +265,7 @@ if (empty($reshook)) {
|
|||||||
$qty .= '_'.$j;
|
$qty .= '_'.$j;
|
||||||
while (GETPOSTISSET($batch)) {
|
while (GETPOSTISSET($batch)) {
|
||||||
// save line of detail into sub_qty
|
// save line of detail into sub_qty
|
||||||
$sub_qty[$j]['q'] = GETPOST($qty, 'int'); // the qty we want to move for this stock record
|
$sub_qty[$j]['q'] = price2num(GETPOST($qty, 'alpha'), 'MS'); // the qty we want to move for this stock record
|
||||||
$sub_qty[$j]['id_batch'] = GETPOST($batch, 'int'); // the id into llx_product_batch of stock record to move
|
$sub_qty[$j]['id_batch'] = GETPOST($batch, 'int'); // the id into llx_product_batch of stock record to move
|
||||||
$subtotalqty += $sub_qty[$j]['q'];
|
$subtotalqty += $sub_qty[$j]['q'];
|
||||||
|
|
||||||
@ -481,7 +481,7 @@ if (empty($reshook)) {
|
|||||||
// setEventMessages($object->error, $object->errors, 'errors');
|
// setEventMessages($object->error, $object->errors, 'errors');
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
} elseif ($action == 'setdate_livraison' && $user->rights->expedition->creer) {
|
} elseif ($action == 'setdate_livraison' && !empty($user->rights->expedition->creer)) {
|
||||||
$datedelivery = dol_mktime(GETPOST('liv_hour', 'int'), GETPOST('liv_min', 'int'), 0, GETPOST('liv_month', 'int'), GETPOST('liv_day', 'int'), GETPOST('liv_year', 'int'));
|
$datedelivery = dol_mktime(GETPOST('liv_hour', 'int'), GETPOST('liv_min', 'int'), 0, GETPOST('liv_month', 'int'), GETPOST('liv_day', 'int'), GETPOST('liv_year', 'int'));
|
||||||
|
|
||||||
$object->fetch($id);
|
$object->fetch($id);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user