From 91a4ce1f373595c1891a1a1d10624646fd3089d1 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 11 Jan 2017 16:23:57 +0200 Subject: [PATCH] Handle when private invoice is viewed --- app/Models/Invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index 4a4099d9f5e6..a8cdd5f5753e 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -667,7 +667,7 @@ class Invoice extends EntityModel implements BalanceAffecting */ public function isSent() { - return $this->invoice_status_id >= INVOICE_STATUS_SENT; + return $this->invoice_status_id >= INVOICE_STATUS_SENT && $this->is_public; } /**