mirror of https://github.com/itflow-org/itflow
Add ticket status to invoice filter.
This commit is contained in:
parent
b7894ffd58
commit
39ba7d83fd
18
invoice.php
18
invoice.php
|
|
@ -92,10 +92,20 @@ if (isset($_GET['invoice_id'])) {
|
||||||
");
|
");
|
||||||
|
|
||||||
//Get billable, and unbilled tickets to add to invoice
|
//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
|
//Add up all the payments for the invoice and get the total amount paid to the invoice
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue