Redirect cashiers from legacy service queues to Billing.
Deploy Ladill Care / deploy (push) Successful in 48s

Doctor-only Queue left non-doctors landing on Appointments, which cashiers
(and pharmacists/lab techs) cannot open — restore role-natural list routes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 23:11:32 +00:00
co-authored by Cursor
parent d422797050
commit ff316f15c6
2 changed files with 43 additions and 4 deletions
+18
View File
@@ -90,6 +90,24 @@ class CareNaturalQueueTest extends TestCase
->assertRedirect(route('care.queue.index'));
}
public function test_service_queues_redirect_cashiers_to_billing_not_appointments(): void
{
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'cashier']);
$this->actingAs($this->owner)
->get(route('care.service-queues.index'))
->assertRedirect(route('care.bills.index'));
}
public function test_service_queues_redirect_pharmacists_to_pharmacy_queue(): void
{
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'pharmacist']);
$this->actingAs($this->owner)
->get(route('care.service-queues.index'))
->assertRedirect(route('care.prescriptions.queue'));
}
public function test_clinical_queue_shows_inline_ops_not_service_counter(): void
{
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'doctor']);