Fix queue handoff so tickets keep their number across services.
Deploy Ladill Queue / deploy (push) Successful in 40s

Handoff now frees the counter, ends the service session, and requeues
the same ticket for the next department — critical for hospital flows
like doctor → lab.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-14 21:22:01 +00:00
co-authored by Cursor
parent d938acf909
commit d2f5ff11d2
12 changed files with 333 additions and 74 deletions
+5
View File
@@ -66,4 +66,9 @@ class Ticket extends Model
{
return $this->hasMany(TicketEvent::class, 'ticket_id');
}
public function transfers(): HasMany
{
return $this->hasMany(TicketTransfer::class, 'ticket_id')->orderByDesc('transferred_at');
}
}