Single quotes

This commit is contained in:
Mélina 2021-12-30 16:14:06 +01:00
parent 9e24785972
commit 2729bd32e6

View File

@ -125,7 +125,7 @@ if ($action == 'getProducts') {
if ($conf->global->TAKEPOS_PRODUCT_IN_STOCK == 1) {
$sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'product_stock as ps';
$sql .= ' ON (p.rowid = ps.fk_product';
$sql .= " AND ps.fk_entrepot = ".((int) getDolGlobalInt('CASHDESK_ID_WAREHOUSE'.$_SESSION['takeposterminal']));
$sql .= ' AND ps.fk_entrepot = '.((int) getDolGlobalInt('CASHDESK_ID_WAREHOUSE'.$_SESSION['takeposterminal']));
}
$sql .= ' WHERE entity IN ('.getEntity('product').')';
if ($filteroncategids) {