Merge fix to prevent entering payments for quotes

This commit is contained in:
Hillel Coren 2016-12-22 17:34:10 +02:00
parent ddda4b90b4
commit ffa7d4e730

View File

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