Make email not required for customer/vendor

This commit is contained in:
Cüneyt Şentürk
2017-12-16 13:43:03 +03:00
parent e033739c09
commit 4afe9c9dd3
19 changed files with 113 additions and 25 deletions

View File

@ -489,6 +489,10 @@ class Invoices extends Controller
*/
public function emailInvoice(Invoice $invoice)
{
if (empty($invoice->customer_email)) {
return redirect()->back();
}
$invoice = $this->prepareInvoice($invoice);
$logo = $this->getLogo();