Revert last commit invoice quote and recurring were already searchable by its concat prefix and number

This commit is contained in:
johnnyq
2023-09-12 11:31:23 -04:00
parent 878582f7c5
commit 7d1cfc586d
6 changed files with 6 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ $sql = mysqli_query(
"SELECT SQL_CALC_FOUND_ROWS * FROM quotes
LEFT JOIN categories ON category_id = quote_category_id
WHERE quote_client_id = $client_id
AND (CONCAT(quote_prefix,quote_number) LIKE '%$q%' OR quote_number LIKE '%$q%' OR quote_scope LIKE '%$q%' OR category_name LIKE '%$q%' OR quote_status LIKE '%$q%')
AND (CONCAT(quote_prefix,quote_number) LIKE '%$q%' OR quote_scope LIKE '%$q%' OR category_name LIKE '%$q%' OR quote_status LIKE '%$q%')
ORDER BY $sort $order LIMIT $record_from, $record_to"
);