From 118ddc87a10e891fffb858937330046bdc7dc59b Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 26 Oct 2022 10:58:53 +1100 Subject: [PATCH] Adjust status if invoice is modified after payment --- app/Services/Invoice/InvoiceService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Invoice/InvoiceService.php b/app/Services/Invoice/InvoiceService.php index 19586b19d779..6ee15254ccba 100644 --- a/app/Services/Invoice/InvoiceService.php +++ b/app/Services/Invoice/InvoiceService.php @@ -317,7 +317,7 @@ class InvoiceService } elseif ($this->invoice->balance > 0 && $this->invoice->balance < $this->invoice->amount) { $this->invoice->status_id = Invoice::STATUS_PARTIAL; } - elseif ($this->invoice->balance > 0) { + elseif ($this->invoice->balance < 0) { $this->invoice->status_id = Invoice::STATUS_SENT; }