3 require
'../../../main.inc.php';
4 require_once DOL_DOCUMENT_ROOT.
'/product/inventory/class/inventory.class.php';
12 if (empty($user->rights->stock->creer)) { echo -1; exit; }
14 $fk_det_inventory =
GETPOST(
'fk_det_inventory');
17 if ($det->fetch($fk_det_inventory))
19 $det->qty_view +=
GETPOST(
'qty');
20 $res = $det->update($user);
30 if (empty($user->rights->stock->creer) || empty($user->rights->stock->changePMP)) { echo -1; exit; }
32 $fk_det_inventory =
GETPOST(
'fk_det_inventory');
35 if ($det->fetch($fk_det_inventory))
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
price2num($amount, $rounding= '', $option=0)
Function that return a number with universal decimal format (decimal separator is '...