Check invoices aren't double billed

This commit is contained in:
Hillel Coren 2016-08-01 10:50:28 +03:00
parent 8e45737863
commit 58d3b355fb

View File

@ -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();