Merge pull request #6066 from turbo124/v5-develop
Fixes for broken invoice pdf links
This commit is contained in:
commit
bd3b80bc4e
1 changed files with 2 additions and 1 deletions
|
|
@ -793,7 +793,8 @@ class InvoiceController extends BaseController
|
|||
$contact = $invitation->contact;
|
||||
$invoice = $invitation->invoice;
|
||||
|
||||
$file = $invoice->pdf_file_path($invitation);
|
||||
$file = $invoice->service()->getInvoicePdf($contact);
|
||||
|
||||
return response()->download($file, basename($file), ['Cache-Control:' => 'no-cache'])->deleteFileAfterSend(true);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue