moon mailer
This commit is contained in:
@@ -79,7 +79,7 @@ class MoonMailerCommand extends Command
|
|||||||
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);
|
||||||
|
dd($rentals);
|
||||||
//Totalize the cost of the moons
|
//Totalize the cost of the moons
|
||||||
$cost = $this->TotalizeMoonCost($rentals);
|
$cost = $this->TotalizeMoonCost($rentals);
|
||||||
|
|
||||||
@@ -175,8 +175,6 @@ class MoonMailerCommand extends Command
|
|||||||
$totalCost = 0.00;
|
$totalCost = 0.00;
|
||||||
$price = null;
|
$price = null;
|
||||||
|
|
||||||
dd($rentals);
|
|
||||||
|
|
||||||
foreach($rentals as $rental) {
|
foreach($rentals as $rental) {
|
||||||
$moon = Moon::where([
|
$moon = Moon::where([
|
||||||
'System' => $rental->System,
|
'System' => $rental->System,
|
||||||
@@ -194,7 +192,6 @@ class MoonMailerCommand extends Command
|
|||||||
} else{
|
} else{
|
||||||
$totalCost += (float)$price['outofalliance'];
|
$totalCost += (float)$price['outofalliance'];
|
||||||
}
|
}
|
||||||
dd($totalCost);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Return the total cost back to the calling function
|
//Return the total cost back to the calling function
|
||||||
|
|||||||
Reference in New Issue
Block a user