This commit is contained in:
denisdulici
2018-03-09 22:00:17 +03:00
parent b51163ae02
commit 651aae0616
4 changed files with 22 additions and 2 deletions

View File

@ -73,7 +73,7 @@ class InvoiceReminder extends Command
$date = Date::today()->subDays($day)->toDateString();
// Get upcoming bills
$invoices = Invoice::with('customer')->accrued()->due($date)->get();
$invoices = Invoice::with('customer')->accrued()->notPaid()->due($date)->get();
foreach ($invoices as $invoice) {
// Notify the customer