mirror of
https://github.com/itflow-org/itflow
synced 2026-08-16 20:45:12 +00:00
clientEnforcement on Recurring Invoices and payments listings
This commit is contained in:
@@ -42,7 +42,7 @@ ob_start();
|
|||||||
<option value="">- Client -</option>
|
<option value="">- Client -</option>
|
||||||
<?php
|
<?php
|
||||||
//select unarchived clients
|
//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)) {
|
while ($row = mysqli_fetch_assoc($sql)) {
|
||||||
$client_id = intval($row['client_id']);
|
$client_id = intval($row['client_id']);
|
||||||
$client_name = nullable_htmlentities($row['client_name']);
|
$client_name = nullable_htmlentities($row['client_name']);
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ $sql = mysqli_query(
|
|||||||
$account_query
|
$account_query
|
||||||
$payment_method_query
|
$payment_method_query
|
||||||
$client_query
|
$client_query
|
||||||
|
$access_permission_query
|
||||||
ORDER BY $sort $order LIMIT $record_from, $record_to"
|
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'
|
AND DATE(recurring_invoice_created_at) BETWEEN '$dtf' AND '$dtt'
|
||||||
$status_query
|
$status_query
|
||||||
$client_query
|
$client_query
|
||||||
|
$access_permission_query
|
||||||
|
|
||||||
ORDER BY $sort $order LIMIT $record_from, $record_to");
|
ORDER BY $sort $order 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