Fixes for logic for isPayable()
This commit is contained in:
parent
d4a820aba1
commit
ec23b0381d
|
|
@ -470,13 +470,9 @@ class Invoice extends BaseModel
|
|||
return false;
|
||||
} elseif ($this->status_id == self::STATUS_DRAFT && $this->is_deleted == false) {
|
||||
return true;
|
||||
} elseif ($this->status_id == self::STATUS_SENT && $this->is_deleted == false) {
|
||||
} elseif ($this->status_id == self::STATUS_SENT && !$this->is_deleted && $this->balance > 0) {
|
||||
return true;
|
||||
} elseif ($this->status_id == self::STATUS_PARTIAL && $this->is_deleted == false) {
|
||||
return true;
|
||||
} elseif ($this->status_id == self::STATUS_SENT && $this->is_deleted == false) {
|
||||
return true;
|
||||
} elseif ($this->status_id == self::STATUS_DRAFT && $this->is_deleted == false) {
|
||||
} elseif ($this->status_id == self::STATUS_PARTIAL && !$this->is_deleted && $this->balance > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue