Fix: [ bug #919 ] SQL error in product/stock/product.php
This commit is contained in:
parent
b1a280de32
commit
3cb6e196b6
@ -64,6 +64,9 @@ class MouvementStock
|
||||
$error = 0;
|
||||
dol_syslog(get_class($this)."::_create start userid=$user->id, fk_product=$fk_product, warehouse=$entrepot_id, qty=$qty, type=$type, price=$price label=$label");
|
||||
|
||||
// Clean parameters
|
||||
if (empty($price)) $price=0;
|
||||
|
||||
if (empty($fk_product)) return 0;
|
||||
|
||||
$now=(! empty($datem) ? $datem : dol_now());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user