Fix stock popup when line is not a predefined product on TakePOS
This commit is contained in:
parent
ee56cf68e6
commit
cad93fd585
@ -1335,7 +1335,7 @@ if ($placeid > 0)
|
||||
if (!empty($conf->stock->enabled) && !empty($user->rights->stock->mouvement->lire))
|
||||
{
|
||||
$constantforkey = 'CASHDESK_ID_WAREHOUSE'.$_SESSION["takeposterminal"];
|
||||
if (!empty($conf->global->$constantforkey)) {
|
||||
if (!empty($conf->global->$constantforkey) && $line->fk_product > 0) {
|
||||
$sql = "SELECT e.rowid, e.ref, e.lieu, e.fk_parent, e.statut, ps.reel, ps.rowid as product_stock_id, p.pmp";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."entrepot as e,";
|
||||
$sql .= " ".MAIN_DB_PREFIX."product_stock as ps";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user