mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 17:54:30 -04:00
Check invoices aren't double billed
This commit is contained in:
parent
8e45737863
commit
58d3b355fb
@ -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