mirror of
https://github.com/itflow-org/itflow
synced 2026-03-04 12:54:51 +00:00
Add ticket status to invoice filter.
This commit is contained in:
18
invoice.php
18
invoice.php
@@ -92,10 +92,20 @@ if (isset($_GET['invoice_id'])) {
|
||||
");
|
||||
|
||||
//Get billable, and unbilled tickets to add to invoice
|
||||
$sql_tickets_billable = mysqli_query($mysqli, "SELECT * FROM tickets WHERE ticket_client_id = $client_id AND ticket_billable = 1 AND ticket_invoice_id = 0;");
|
||||
|
||||
|
||||
|
||||
$sql_tickets_billable = mysqli_query(
|
||||
$mysqli, "
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
tickets
|
||||
WHERE
|
||||
ticket_client_id = $client_id
|
||||
AND
|
||||
ticket_billable = 1
|
||||
AND
|
||||
ticket_invoice_id = 0
|
||||
AND
|
||||
ticket_status LIKE '%close%';");
|
||||
|
||||
|
||||
//Add up all the payments for the invoice and get the total amount paid to the invoice
|
||||
|
||||
Reference in New Issue
Block a user