Fixes for locked invoices
This commit is contained in:
parent
815c4a9660
commit
7fab6e05a4
1 changed files with 1 additions and 1 deletions
|
|
@ -452,7 +452,7 @@ class Invoice extends BaseModel
|
|||
return false;
|
||||
break;
|
||||
case 'when_sent':
|
||||
return $this->status_id == self::STATUS_DRAFT;
|
||||
return $this->status_id == self::STATUS_SENT;
|
||||
break;
|
||||
case 'when_paid':
|
||||
return $this->status_id == self::STATUS_PAID || $this->status_id == self::STATUS_PARTIAL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue