Fix queue handoff so tickets keep their number across services.
Deploy Ladill Queue / deploy (push) Successful in 40s
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:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user