Prevent online payments for quotes

This commit is contained in:
Hillel Coren 2016-12-22 13:49:20 +02:00
parent 781bb0512f
commit 80cc8ae2b4

View File

@ -550,7 +550,7 @@ class Invoice extends EntityModel implements BalanceAffecting
public function canBePaid()
{
return floatval($this->balance) > 0 && ! $this->is_deleted;
return floatval($this->balance) > 0 && ! $this->is_deleted && $this->isInvoice();
}
/**