Skip to content
Snippets Groups Projects
Commit 3cb6e196 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: [ bug #919 ] SQL error in product/stock/product.php

parent b1a280de
Branches
Tags
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment