mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 14:04:40 -04:00
Check invoices aren't double billed
This commit is contained in:
parent
305ef1d378
commit
8eda3badb8
@ -59,6 +59,7 @@ class ChargeRenewalInvoices extends Command
|
|||||||
$ninjaAccount = $this->accountRepo->getNinjaAccount();
|
$ninjaAccount = $this->accountRepo->getNinjaAccount();
|
||||||
$invoices = Invoice::whereAccountId($ninjaAccount->id)
|
$invoices = Invoice::whereAccountId($ninjaAccount->id)
|
||||||
->whereDueDate(date('Y-m-d'))
|
->whereDueDate(date('Y-m-d'))
|
||||||
|
->where('balance', '>', 0)
|
||||||
->with('client')
|
->with('client')
|
||||||
->orderBy('id')
|
->orderBy('id')
|
||||||
->get();
|
->get();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user