update implementation

This commit is contained in:
Mohit Panjwani
2021-05-25 12:22:27 +05:30
parent 83234cfac3
commit 89c264c6a9
6 changed files with 5 additions and 30 deletions

View File

@ -515,7 +515,7 @@ class Invoice extends Model implements HasMedia
$invoiceTemplate = InvoiceTemplate::find($this->invoice_template_id);
$company = Company::find($this->company_id);
$locale = CompanySetting::getSetting('language', $company->id);
$locale = CompanySetting::getSetting('language', $company->id);
App::setLocale($locale);
@ -591,9 +591,4 @@ class Invoice extends Model implements HasMedia
'{INVOICE_LINK}' => url('/customer/invoices/pdf/'.$this->unique_hash),
];
}
public function getValues($slug)
{
return $this->getCustomFieldValues($slug);
}
}