Fix php compatibility
This commit is contained in:
parent
58e2b49b1c
commit
072eb740c7
@ -463,7 +463,8 @@ function card_line(&$inventory, &$lines, $mode)
|
|||||||
if(!empty($TCacheEntrepot[$Inventorydet->fk_warehouse])) $e = $TCacheEntrepot[$Inventorydet->fk_warehouse];
|
if(!empty($TCacheEntrepot[$Inventorydet->fk_warehouse])) $e = $TCacheEntrepot[$Inventorydet->fk_warehouse];
|
||||||
elseif($e->fetch($Inventorydet->fk_warehouse) > 0) $TCacheEntrepot[$e->id] = $e;
|
elseif($e->fetch($Inventorydet->fk_warehouse) > 0) $TCacheEntrepot[$e->id] = $e;
|
||||||
|
|
||||||
$qty = (float)GETPOST('qty_to_add')[$k];
|
$qtytoadd = GETPOST('qty_to_add', 'array');
|
||||||
|
$qty = (float) $qtytoadd[$k];
|
||||||
|
|
||||||
$lines[]=array(
|
$lines[]=array(
|
||||||
'produit' => $product->getNomUrl(1).' - '.$product->label,
|
'produit' => $product->getNomUrl(1).' - '.$product->label,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user