Dont show archived clients in new invoice screens

This commit is contained in:
o-psi
2023-10-16 15:53:54 -05:00
parent 33c1e72dcc
commit 4763110267
3 changed files with 110 additions and 109 deletions

View File

@@ -34,8 +34,8 @@
<select class="form-control select2" name="client" required>
<option value="">- Client -</option>
<?php
$sql = mysqli_query($mysqli, "SELECT * FROM clients ORDER BY client_name ASC");
//select unarchived clients
$sql = mysqli_query($mysqli, "SELECT * FROM clients WHERE client_archived_at IS NULL ORDER BY client_name ASC");
while ($row = mysqli_fetch_array($sql)) {
$client_id = intval($row['client_id']);
$client_name = nullable_htmlentities($row['client_name']);