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 BillReminder extends Command
$date = Date::today()->addDays($day)->toDateString();
// Get upcoming bills
$bills = Bill::with('vendor')->accrued()->due($date)->get();
$bills = Bill::with('vendor')->accrued()->notPaid()->due($date)->get();
foreach ($bills as $bill) {
// Notify all users assigned to this company