mirror of
https://github.com/itflow-org/itflow
synced 2026-03-08 23:04:51 +00:00
Fix issue where recurring invoices would not display if they were never sent out
This commit is contained in:
@@ -74,10 +74,10 @@ $url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o
|
|||||||
|
|
||||||
$sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM recurring
|
$sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM recurring
|
||||||
LEFT JOIN clients ON recurring_client_id = client_id
|
LEFT JOIN clients ON recurring_client_id = client_id
|
||||||
JOIN categories ON recurring_category_id = category_id
|
LEFT JOIN categories ON recurring_category_id = category_id
|
||||||
WHERE recurring.company_id = $session_company_id
|
WHERE recurring.company_id = $session_company_id
|
||||||
AND (CONCAT(recurring_prefix,recurring_number) LIKE '%$q%' OR recurring_frequency LIKE '%$q%' OR recurring_scope LIKE '%$q%' OR client_name LIKE '%$q%' OR category_name LIKE '%$q%')
|
AND (CONCAT(recurring_prefix,recurring_number) LIKE '%$q%' OR recurring_frequency LIKE '%$q%' OR recurring_scope LIKE '%$q%' OR client_name LIKE '%$q%' OR category_name LIKE '%$q%')
|
||||||
AND DATE(recurring_last_sent) BETWEEN '$dtf' AND '$dtt'
|
AND DATE(recurring_next_date) BETWEEN '$dtf' AND '$dtt'
|
||||||
ORDER BY $sb $o LIMIT $record_from, $record_to");
|
ORDER BY $sb $o LIMIT $record_from, $record_to");
|
||||||
|
|
||||||
$num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
$num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
||||||
|
|||||||
Reference in New Issue
Block a user