Fixes for broken invoice pdf links
This commit is contained in:
parent
aafb79179a
commit
b37d9d267e
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