fix : test on reception must be done on lineToTest if checked
This commit is contained in:
parent
0f6dae313d
commit
cd37d3440a
@ -237,8 +237,6 @@ if (empty($reshook))
|
|||||||
$objectsrc = new $classname($db);
|
$objectsrc = new $classname($db);
|
||||||
$objectsrc->fetch($object->origin_id);
|
$objectsrc->fetch($object->origin_id);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$object->socid = $objectsrc->socid;
|
$object->socid = $objectsrc->socid;
|
||||||
$object->ref_supplier = GETPOST('ref_supplier', 'alpha');
|
$object->ref_supplier = GETPOST('ref_supplier', 'alpha');
|
||||||
$object->model_pdf = GETPOST('model');
|
$object->model_pdf = GETPOST('model');
|
||||||
@ -280,10 +278,8 @@ if (empty($reshook))
|
|||||||
$stockLocation = "ent1".$i."_0";
|
$stockLocation = "ent1".$i."_0";
|
||||||
$qty = "qtyl".$i;
|
$qty = "qtyl".$i;
|
||||||
|
|
||||||
|
//var_dump(GETPOST($qty,'int')); var_dump($_POST); var_dump($batch);exit;
|
||||||
|
//reception line for product with no batch management and no multiple stock location
|
||||||
//var_dump(GETPOST($qty,'int')); var_dump($_POST); var_dump($batch);exit;
|
|
||||||
//reception line for product with no batch management and no multiple stock location
|
|
||||||
if (GETPOST($qty, 'int') > 0)
|
if (GETPOST($qty, 'int') > 0)
|
||||||
$totalqty += GETPOST($qty, 'int');
|
$totalqty += GETPOST($qty, 'int');
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user