Fix cashier desk: unpaid bills on every demo branch.
Deploy Ladill Care / deploy (push) Successful in 39s

Demo seeding used i%3 for both branch and paid status, so Ridge Clinic only got paid invoices. Cashiers now default to outstanding balances and Call next is secondary to the walk-up unpaid list.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 23:22:54 +00:00
co-authored by Cursor
parent b84c7e31ba
commit a34d6579cd
7 changed files with 143 additions and 29 deletions
+5 -1
View File
@@ -46,7 +46,11 @@ class BillService
$query->where('branch_id', $branchId);
}
if ($status = $filters['status'] ?? null) {
$status = $filters['status'] ?? null;
if ($status === 'outstanding') {
$query->whereIn('status', [Bill::STATUS_OPEN, Bill::STATUS_PARTIAL])
->where('balance_minor', '>', 0);
} elseif ($status) {
$query->where('status', $status);
}