From b838ab0c319ae752a49303b49d7d65d04133e552 Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Wed, 25 Sep 2019 12:13:27 +0200 Subject: [PATCH] Fix search by ref --- htdocs/takepos/ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/takepos/ajax.php b/htdocs/takepos/ajax.php index 74f69618a0f..1cb91f6edac 100644 --- a/htdocs/takepos/ajax.php +++ b/htdocs/takepos/ajax.php @@ -52,7 +52,7 @@ elseif ($action=="search" && $term != '') { $sql = 'SELECT * FROM '.MAIN_DB_PREFIX.'product'; $sql.= ' WHERE entity IN ('.getEntity('product').')'; $sql.= ' AND tosell = 1'; - $sql.= natural_search(array('label','barcode'), $term); + $sql.= natural_search(array('ref','label','barcode'), $term); $resql = $db->query($sql); $rows = array(); while ($row = $db->fetch_array($resql)) {