From d9ca6ec6ba284e5792439d09864221a953494397 Mon Sep 17 00:00:00 2001 From: Nisse Lommerde Date: Sun, 13 Apr 2025 10:51:38 -0400 Subject: [PATCH] #150: Invoice PDF name --- README.md | 8 +++++--- app/Filament/Admin/Resources/OrderResource.php | 2 -- app/Http/Controllers/InvoiceController.php | 2 +- config/app.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 04b923d..c2d01c7 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ # Changelog -**2025-04-11** +**2025-04-13** - Fixed #132 - Inches / cm toggle for order page (and show unit on pdf) - -**2025-04-10** +- Fixed #148 - Change amount label to unit price on order form (also textarea) +- Fixed #147 - Resource lock sidebar settings +- Fixed #134 - Fix Dashboard 'last 30 days' +- Added #129 - Order product count sum - Fixed #145 - Default order sort is incorrect (newest will always show on top now) - Fixed #142 - Packing Slip content field should be required diff --git a/app/Filament/Admin/Resources/OrderResource.php b/app/Filament/Admin/Resources/OrderResource.php index 6819420..6f31579 100644 --- a/app/Filament/Admin/Resources/OrderResource.php +++ b/app/Filament/Admin/Resources/OrderResource.php @@ -181,12 +181,10 @@ public static function form(Form $form): Form TextInput::make('s') ->placeholder('s') - ->reactive() ->rules('numeric'), TextInput::make('m') ->placeholder('m') - ->reactive() ->rules('numeric'), TextInput::make('l') diff --git a/app/Http/Controllers/InvoiceController.php b/app/Http/Controllers/InvoiceController.php index fc91942..1cb585e 100644 --- a/app/Http/Controllers/InvoiceController.php +++ b/app/Http/Controllers/InvoiceController.php @@ -11,7 +11,7 @@ class InvoiceController extends Controller public function pdf(int $id) { $invoice = Invoice::find($id); - $url = strtolower('invoice-'.$invoice->internal_id.'.pdf'); + $url = strtolower($invoice->internal_id.'_'.$invoice->customer->company_name.'.pdf'); Pdf::view('pdf.invoice', ['invoice' => $invoice]) ->withBrowsershot(function (Browsershot $browsershot) { diff --git a/config/app.php b/config/app.php index 7d29135..aef9ea2 100644 --- a/config/app.php +++ b/config/app.php @@ -25,7 +25,7 @@ | or any other location as required by the application or its packages. */ - 'version' => '20250411', + 'version' => '20250413', /* |--------------------------------------------------------------------------