mirror of
https://github.com/itflow-org/itflow
synced 2026-07-23 08:50:42 +00:00
clientEnforcement on Recurring Invoices and payments listings
This commit is contained in:
@@ -42,7 +42,7 @@ ob_start();
|
||||
<option value="">- Client -</option>
|
||||
<?php
|
||||
//select unarchived clients
|
||||
$sql = mysqli_query($mysqli, "SELECT * FROM clients WHERE client_archived_at IS NULL ORDER BY client_name ASC");
|
||||
$sql = mysqli_query($mysqli, "SELECT * FROM clients WHERE client_archived_at IS NULL $access_permission_query ORDER BY client_name ASC");
|
||||
while ($row = mysqli_fetch_assoc($sql)) {
|
||||
$client_id = intval($row['client_id']);
|
||||
$client_name = nullable_htmlentities($row['client_name']);
|
||||
|
||||
@@ -49,6 +49,7 @@ $sql = mysqli_query(
|
||||
$account_query
|
||||
$payment_method_query
|
||||
$client_query
|
||||
$access_permission_query
|
||||
ORDER BY $sort $order LIMIT $record_from, $record_to"
|
||||
);
|
||||
|
||||
|
||||
@@ -37,6 +37,8 @@ $sql = mysqli_query(
|
||||
AND DATE(recurring_invoice_created_at) BETWEEN '$dtf' AND '$dtt'
|
||||
$status_query
|
||||
$client_query
|
||||
$access_permission_query
|
||||
|
||||
ORDER BY $sort $order LIMIT $record_from, $record_to");
|
||||
|
||||
$num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
|
||||
Reference in New Issue
Block a user