diff --git a/app/Services/Invoice/InvoiceService.php b/app/Services/Invoice/InvoiceService.php index 72119404bc6e..a6d40175d24a 100644 --- a/app/Services/Invoice/InvoiceService.php +++ b/app/Services/Invoice/InvoiceService.php @@ -299,7 +299,10 @@ class InvoiceService if($this->invoice->status_id == Invoice::STATUS_DRAFT) return $this; - if ($this->invoice->balance > 0 && $this->invoice->balance < $this->invoice->amount) { + if($this->invoice->balance == 0){ + $this->setStatus(Invoice::STATUS_PAID); + } + elseif ($this->invoice->balance > 0 && $this->invoice->balance < $this->invoice->amount) { $this->setStatus(Invoice::STATUS_PARTIAL); }