From 8f78e960b21758ad710bc63e918cfb083b7d9b24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20=C3=87ak=C4=B1rel?= Date: Sat, 1 Feb 2020 01:37:41 +0300 Subject: [PATCH] Get invoice template to print it in Portal --- app/Http/Controllers/Portal/Invoices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Portal/Invoices.php b/app/Http/Controllers/Portal/Invoices.php index e05f38eba..4abaf5803 100644 --- a/app/Http/Controllers/Portal/Invoices.php +++ b/app/Http/Controllers/Portal/Invoices.php @@ -108,7 +108,7 @@ class Invoices extends Controller $invoice->paid = $paid; - $invoice->template_path = 'sales.invoices.print'; + $invoice->template_path = 'sales.invoices.print_' . setting('invoice.template' ,'default'); event(new \App\Events\Sale\InvoicePrinting($invoice));