renamed print files
This commit is contained in:
@ -376,7 +376,7 @@ class Bills extends Controller
|
||||
|
||||
$bill->paid = $paid;
|
||||
|
||||
$bill->template_path = 'expenses.bills.bill';
|
||||
$bill->template_path = 'expenses.bills.print';
|
||||
|
||||
return $bill;
|
||||
}
|
||||
|
@ -444,7 +444,7 @@ class Invoices extends Controller
|
||||
|
||||
$invoice->paid = $paid;
|
||||
|
||||
$invoice->template_path = 'incomes.invoices.invoice';
|
||||
$invoice->template_path = 'incomes.invoices.print';
|
||||
|
||||
event(new \App\Events\Income\InvoicePrinting($invoice));
|
||||
|
||||
|
@ -124,7 +124,7 @@ class Invoices extends Controller
|
||||
|
||||
$invoice->paid = $paid;
|
||||
|
||||
$invoice->template_path = 'incomes.invoices.invoice';
|
||||
$invoice->template_path = 'incomes.invoices.print';
|
||||
|
||||
event(new \App\Events\Income\InvoicePrinting($invoice));
|
||||
|
||||
|
@ -21,13 +21,7 @@ class Logo
|
||||
{
|
||||
$logo = '';
|
||||
|
||||
$media_id = setting('company.logo');
|
||||
|
||||
if (setting('invoice.logo')) {
|
||||
$media_id = setting('invoice.logo');
|
||||
}
|
||||
|
||||
$media = Media::find($media_id);
|
||||
$media = Media::find(setting('company.logo'));
|
||||
|
||||
if (!empty($media)) {
|
||||
$path = Storage::path($media->getDiskPath());
|
||||
@ -36,10 +30,12 @@ class Logo
|
||||
return $logo;
|
||||
}
|
||||
} else {
|
||||
$path = asset('public/img/akaunting-logo-green.png');
|
||||
$path = asset('public/img/company.png');
|
||||
}
|
||||
|
||||
$image = Image::make($path)->encode()->getEncoded();
|
||||
$width = $height = setting('invoice.logo_size', 128);
|
||||
|
||||
$image = Image::make($path)->resize($width, $height)->encode()->getEncoded();
|
||||
|
||||
if (empty($image)) {
|
||||
return $logo;
|
||||
|
Reference in New Issue
Block a user