mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Return early on paid invoices if gateway fee is already paid
This commit is contained in:
parent
5937414ad3
commit
78d465daea
@ -434,7 +434,7 @@ class InvoiceService
|
||||
$balance = $this->invoice->balance;
|
||||
|
||||
//return early if type three does not exist.
|
||||
if (! collect($this->invoice->line_items)->contains('type_id', 3)) {
|
||||
if ($this->invoice->status_id == Invoice::STATUS_PAID || ! collect($this->invoice->line_items)->contains('type_id', 3)) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user