Fixes for locked invoices

This commit is contained in:
David Bomba 2021-07-28 12:29:51 +10:00
parent 815c4a9660
commit 7fab6e05a4

View File

@ -452,7 +452,7 @@ class Invoice extends BaseModel
return false; return false;
break; break;
case 'when_sent': case 'when_sent':
return $this->status_id == self::STATUS_DRAFT; return $this->status_id == self::STATUS_SENT;
break; break;
case 'when_paid': case 'when_paid':
return $this->status_id == self::STATUS_PAID || $this->status_id == self::STATUS_PARTIAL; return $this->status_id == self::STATUS_PAID || $this->status_id == self::STATUS_PARTIAL;