fix prefix

This commit is contained in:
Mélina 2021-12-20 10:42:10 +01:00
parent 9571dc0613
commit dccd74b0ef

View File

@ -132,7 +132,7 @@ if ($action == 'getProducts') {
}
$sql .= ' AND tosell = 1';
if ($conf->global->TAKEPOS_PRODUCT_IN_STOCK == 1) {
$sql .= ' AND reel > 0';
$sql .= ' AND ps.reel > 0';
$sql .= " AND fk_entrepot = ".((int) $conf->global->{'CASHDESK_ID_WAREHOUSE'.$_SESSION['takeposterminal']});
}
$sql .= natural_search(array('ref', 'label', 'barcode'), $term);