#150: Invoice PDF name

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

View File

@ -1,8 +1,7 @@
# 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)
- Add #129 - Order product count sum
**2025-04-10**
- 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

@ -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',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------