++ fix prioritario display and add link sent toggle

This commit is contained in:
2026-04-13 15:40:35 +00:00
parent 0553d4ef74
commit 6a65087449
10 changed files with 459 additions and 108 deletions

View File

@@ -19,6 +19,7 @@ class Assegnazione extends Model
'counted_in_campaign',
'campaign_id',
'pdf_access_code',
'link_sent',
'note',
'created_by',
'returned_by',
@@ -30,6 +31,7 @@ class Assegnazione extends Model
'assigned_at' => 'date',
'returned_at' => 'date',
'counted_in_campaign' => 'boolean',
'link_sent' => 'boolean',
];
}
@@ -117,6 +119,11 @@ class Assegnazione extends Model
return route('assignments.pdf.short', ['code' => $this->ensurePdfAccessCode()]);
}
public function markLinkSent(): void
{
$this->forceFill(['link_sent' => true])->saveQuietly();
}
// ─── Scopes ─────────────────────────────────────────────────
public function scopeAperte($query)