#150: Invoice PDF name
This commit is contained in:
parent
1e32502759
commit
d9ca6ec6ba
@ -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
|
||||||
|
|
||||||
|
@ -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')
|
||||||
|
@ -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) {
|
||||||
|
@ -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',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user