mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 18:14: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();
|
||||
$invoices = Invoice::whereAccountId($ninjaAccount->id)
|
||||
->whereDueDate(date('Y-m-d'))
|
||||
->where('balance', '>', 0)
|
||||
->with('client')
|
||||
->orderBy('id')
|
||||
->get();
|
||||
|
Loading…
x
Reference in New Issue
Block a user