moon mailer
This commit is contained in:
@@ -78,7 +78,10 @@ class MoonMailerCommand extends Command
|
|||||||
//then update parameters of the moon
|
//then update parameters of the moon
|
||||||
foreach($contacts as $contact) {
|
foreach($contacts as $contact) {
|
||||||
//Get the moons the renter is renting
|
//Get the moons the renter is renting
|
||||||
$rentals = $this->GetRentalMoons($contact);
|
//$rentals = $this->GetRentalMoons($contact);
|
||||||
|
|
||||||
|
$rentals = MoonRental::where(['Contact' => $contact->Contact])->get();
|
||||||
|
dd($rentals);
|
||||||
|
|
||||||
//Totalize the cost of the moons
|
//Totalize the cost of the moons
|
||||||
$cost = $this->TotalizeMoonCost($rentals);
|
$cost = $this->TotalizeMoonCost($rentals);
|
||||||
|
|||||||
Reference in New Issue
Block a user