Merge fix to prevent entering payments for quotes
This commit is contained in:
parent
ddda4b90b4
commit
ffa7d4e730
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue