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
|
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';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ if [ "${APP_ENV:-production}" = "production" ]; then
|
|||||||
echo "[entrypoint] Caching config/routes/views..."
|
echo "[entrypoint] Caching config/routes/views..."
|
||||||
php artisan config:cache --no-interaction || true
|
php artisan config:cache --no-interaction || true
|
||||||
php artisan route:cache --no-interaction || true
|
php artisan route:cache --no-interaction || true
|
||||||
|
php artisan view:clear --no-interaction || true
|
||||||
php artisan view:cache --no-interaction || true
|
php artisan view:cache --no-interaction || true
|
||||||
php artisan event:cache --no-interaction || true
|
php artisan event:cache --no-interaction || true
|
||||||
php artisan filament:cache-components --no-interaction || true
|
php artisan filament:cache-components --no-interaction || true
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="ro">
|
<html lang="ro">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>{{ $wo->number }} — Fișă lucru</title>
|
<title>{{ $wo->number }} — {{ __('FIȘĂ DE LUCRU') }}</title>
|
||||||
<style>
|
<style>
|
||||||
* { box-sizing: border-box; }
|
* { box-sizing: border-box; }
|
||||||
body {
|
body {
|
||||||
|
|||||||
Reference in New Issue
Block a user