From 624c3d9781eebaad0451f082e18cd62fd1344c98 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 1 Jan 2017 13:22:25 +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 68f84ccf69da..9b5ab1c138fa 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -1891,7 +1891,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) @@ -1900,7 +1900,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; } }