Handle when private invoice is viewed

This commit is contained in:
Hillel Coren 2017-01-11 16:24:18 +02:00
parent e4852a0169
commit a1e000a1e9

View File

@ -601,7 +601,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;
} }
/** /**