From 4c98f1d1befa4dc88a14958005ad951b8e0a9654 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 1 Jan 2017 13:22:05 +0200 Subject: [PATCH] Fix for quote terms/signature --- app/Models/Account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Account.php b/app/Models/Account.php index 30e40ef71163..072a99b68f70 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -1892,7 +1892,7 @@ class Account extends Eloquent return false; } - return $invoice->is_quote ? $this->show_accept_quote_terms : $this->show_accept_invoice_terms; + return $invoice->isQuote() ? $this->show_accept_quote_terms : $this->show_accept_invoice_terms; } public function showSignature($invoice) @@ -1901,7 +1901,7 @@ class Account extends Eloquent return false; } - return $invoice->is_quote ? $this->require_quote_signature : $this->require_invoice_signature; + return $invoice->isQuote() ? $this->require_quote_signature : $this->require_invoice_signature; } }