fix ajax search for external modules
This commit is contained in:
parent
425f10d71e
commit
b64ecef81d
1 changed files with 2 additions and 1 deletions
|
|
@ -286,7 +286,7 @@ if ($action == 'getProducts') {
|
|||
$sql .= " AND archive = 0";
|
||||
}*/
|
||||
if (getDolGlobalInt('TAKEPOS_PRODUCT_IN_STOCK') == 1) {
|
||||
$sql .= ' INNER JOIN '.MAIN_DB_PREFIX.'product_stock as ps';
|
||||
$sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'product_stock as ps';
|
||||
$sql .= ' ON (p.rowid = ps.fk_product';
|
||||
if (getDolGlobalString('CASHDESK_ID_WAREHOUSE'.$_SESSION['takeposterminal'])) {
|
||||
$sql .= " AND ps.fk_entrepot = ".((int) getDolGlobalInt("CASHDESK_ID_WAREHOUSE".$_SESSION['takeposterminal']));
|
||||
|
|
@ -381,6 +381,7 @@ if ($action == 'getProducts') {
|
|||
} else {
|
||||
$row = array();
|
||||
}
|
||||
$rows[] = $row;
|
||||
} else {
|
||||
// add
|
||||
if (count($hookmanager->resArray)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue