Fix cashier desk: unpaid bills on every demo branch.
Deploy Ladill Care / deploy (push) Successful in 39s
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user