Skip to content

Commit

Permalink
fix: allow viewing of fee sheet items if billing.billed is null (open…
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwaite authored Nov 15, 2024
1 parent e8354b3 commit d92b33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Billing/BillingReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function generateTheQueryPart($daysheet = false)
$billstring .= ' AND ' . "billing.billed = '1'";
} elseif (strpos($criteria_value, "billing.billed|=|0") !== false) {
//3 is an error condition
$billstring .= ' AND ' . "(billing.billed = '0' or (billing.billed = '1' and billing.bill_process = '3'))";
$billstring .= ' AND ' . "(billing.billed = '0' OR billing.billed IS NULL OR (billing.billed = '1' AND billing.bill_process = '3'))";
} elseif (strpos($criteria_value, "billing.billed|=|7") !== false) {
$billstring .= ' AND ' . "billing.bill_process = '7'";
} elseif (strpos($criteria_value, "billing.id|=|null") !== false) {
Expand Down

0 comments on commit d92b33d

Please sign in to comment.