moon mailer

This commit is contained in:
2019-05-31 22:03:52 -05:00
parent eed78f7639
commit f8addc663b

View File

@@ -110,8 +110,11 @@ class MoonMailerCommand extends Command
//Update the moon as not being paid for the next month? //Update the moon as not being paid for the next month?
foreach($rentals as $rental) { foreach($rentals as $rental) {
if($today > $rental->Paid_Until) $previous = new Carbon($rental->Paid_Until);
$this->UpdateNotPaid($rental);
if($today->greaterThan($previous)) {
$this->UpdateNotPaid($rental);
}
} }
*/ */