Allow to search via invoice, quote, recurring numbers

This commit is contained in:
johnnyq
2023-09-11 18:46:43 -04:00
parent 43fcf86a41
commit 878582f7c5
6 changed files with 6 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ $sql = mysqli_query(
"SELECT * FROM recurring
LEFT JOIN categories ON recurring_category_id = category_id
WHERE recurring_client_id = $client_id
AND (CONCAT(recurring_prefix,recurring_number) LIKE '%$q%' OR recurring_frequency LIKE '%$q%' OR recurring_scope LIKE '%$q%' OR category_name LIKE '%$q%')
AND (CONCAT(recurring_prefix,recurring_number) LIKE '%$q%' OR recurring_number LIKE '%$q%' OR recurring_frequency LIKE '%$q%' OR recurring_scope LIKE '%$q%' OR category_name LIKE '%$q%')
ORDER BY $sort $order LIMIT $record_from, $record_to");
$num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));