handle invoices going from zero balance to positive balance
This commit is contained in:
parent
fa4d4d3a22
commit
0892b6035f
1 changed files with 1 additions and 1 deletions
|
|
@ -313,7 +313,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