#150: Invoice PDF name

This commit is contained in:
Nisse Lommerde 2025-04-13 10:51:38 -04:00
parent 1e32502759
commit d9ca6ec6ba
4 changed files with 7 additions and 7 deletions

View File

@ -1,8 +1,10 @@
# Changelog # Changelog
**2025-04-11** **2025-04-13**
- Fixed #132 - Inches / cm toggle for order page (and show unit on pdf) - Fixed #132 - Inches / cm toggle for order page (and show unit on pdf)
- Fixed #148 - Change amount label to unit price on order form (also textarea)
**2025-04-10** - 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 #145 - Default order sort is incorrect (newest will always show on top now)
- Fixed #142 - Packing Slip content field should be required - Fixed #142 - Packing Slip content field should be required

View File

@ -181,12 +181,10 @@ public static function form(Form $form): Form
TextInput::make('s') TextInput::make('s')
->placeholder('s') ->placeholder('s')
->reactive()
->rules('numeric'), ->rules('numeric'),
TextInput::make('m') TextInput::make('m')
->placeholder('m') ->placeholder('m')
->reactive()
->rules('numeric'), ->rules('numeric'),
TextInput::make('l') TextInput::make('l')

View File

@ -11,7 +11,7 @@ class InvoiceController extends Controller
public function pdf(int $id) public function pdf(int $id)
{ {
$invoice = Invoice::find($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]) Pdf::view('pdf.invoice', ['invoice' => $invoice])
->withBrowsershot(function (Browsershot $browsershot) { ->withBrowsershot(function (Browsershot $browsershot) {

View File

@ -25,7 +25,7 @@
| or any other location as required by the application or its packages. | or any other location as required by the application or its packages.
*/ */
'version' => '20250411', 'version' => '20250413',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------