From 7fab6e05a4e49fcf713aec348a90a031eb028e71 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 28 Jul 2021 12:29:51 +1000 Subject: [PATCH] Fixes for locked invoices --- app/Models/Invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index db95b09c8e02..830ab1de081e 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -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;