Adjust status if invoice is modified after payment
This commit is contained in:
parent
91cfc33f61
commit
118ddc87a1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue