Merge pull request #14 from twetech:unbilled-tickets-report

Adjust filter to only show unbilled
This commit is contained in:
Andrew Malsbury 2024-01-10 17:06:52 -06:00 committed by GitHub
commit b499b52f49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -19,9 +19,11 @@ if (isset($_GET['status']) && ($_GET['status']) == 'Open') {
}
if (isset($_GET['billable']) && ($_GET['billable']) == '1') {
$billable = 1;
$ticket_billable_snippet = "ticket_billable = 1";
$ticket_status_snippet = '1 = 1';
if (isset($_GET['unbilled'])) {
$billable = 1;
$ticket_billable_snippet = "ticket_billable = 1 AND ticket_invoice_id = 0";
$ticket_status_snippet = '1 = 1';
}
} else {
$billable = 0;
$ticket_billable_snippet = '1 = 1';