adjust clients to filter out leads

This commit is contained in:
o-psi 2023-10-16 22:49:59 -05:00
parent efba7ffc8b
commit 0d02c8b855
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ $sql = mysqli_query(
OR tags.tag_name LIKE '%$q%' OR clients.client_tax_id_number LIKE '%$q%')
AND clients.client_archived_at IS NULL
AND DATE(clients.client_created_at) BETWEEN '$dtf' AND '$dtt'
AND clients.client_lead = 0
GROUP BY clients.client_id
ORDER BY $sort $order
LIMIT $record_from, $record_to