moon mailer
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user