Handle when private invoice is viewed

This commit is contained in:
Hillel Coren 2017-01-11 16:23:57 +02:00
parent cb676fc021
commit 91a4ce1f37

View File

@ -667,7 +667,7 @@ class Invoice extends EntityModel implements BalanceAffecting
*/ */
public function isSent() public function isSent()
{ {
return $this->invoice_status_id >= INVOICE_STATUS_SENT; return $this->invoice_status_id >= INVOICE_STATUS_SENT && $this->is_public;
} }
/** /**