Fix PDF filename double WO prefix, title translation, view cache clear
- WorkOrderPdfService::filename() removed duplicate 'WO-' prefix
($wo->number already starts with 'WO-')
- PDF <title> now uses __('FIȘĂ DE LUCRU') so it shows in user locale
- entrypoint: view:clear before view:cache to avoid stale compiled views
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -57,6 +57,6 @@ class WorkOrderPdfService
|
||||
|
||||
public function filename(WorkOrder $wo): string
|
||||
{
|
||||
return 'WO-' . $wo->number . '-' . optional($wo->opened_at)->format('Ymd') . '.pdf';
|
||||
return $wo->number . '-' . optional($wo->opened_at)->format('Ymd') . '.pdf';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user