mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-22 02:11:01 -04:00
Merge fix to prevent entering payments for quotes
This commit is contained in:
parent
ddda4b90b4
commit
ffa7d4e730
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user