moon mailer

This commit is contained in:
2019-05-31 21:44:12 -05:00
parent 34334fd160
commit d1249b4e4b

View File

@@ -95,7 +95,7 @@ class MoonMailerCommand extends Command
$body .= "Please remit payment to Spatial Forces on the 1st should you continue to wish to rent the moon.<br>"; $body .= "Please remit payment to Spatial Forces on the 1st should you continue to wish to rent the moon.<br>";
$body .= "Sincerely,<br>"; $body .= "Sincerely,<br>";
$body .= "Warped Intentions Leadership<br>"; $body .= "Warped Intentions Leadership<br>";
/*
//Dispatch the mail job //Dispatch the mail job
$mail = new EveMail; $mail = new EveMail;
$mail->sender = 93738489; $mail->sender = 93738489;
@@ -113,6 +113,7 @@ class MoonMailerCommand extends Command
if($today > $rental->Paid_Until) if($today > $rental->Paid_Until)
$this->UpdateNotPaid($rental); $this->UpdateNotPaid($rental);
} }
*/
} }
//Mark the job as finished //Mark the job as finished
@@ -172,6 +173,9 @@ class MoonMailerCommand extends Command
//Delcare variables and classes //Delcare variables and classes
$moonCalc = new MoonCalc; $moonCalc = new MoonCalc;
$totalCost = 0.00; $totalCost = 0.00;
$price = null;
dd($rentals);
foreach($rentals as $rental) { foreach($rentals as $rental) {
$moon = Moon::where([ $moon = Moon::where([
@@ -183,7 +187,7 @@ class MoonMailerCommand extends Command
//Get the updated price for the moon //Get the updated price for the moon
$price = $moonCalc->SpatialMoonsOnlyGoo($moon->FirstOre, $moon->FirstQuantity, $moon->SecondOre, $moon->SecondQuantity, $price = $moonCalc->SpatialMoonsOnlyGoo($moon->FirstOre, $moon->FirstQuantity, $moon->SecondOre, $moon->SecondQuantity,
$moon->ThirdOre, $moon->ThirdQuantity, $moon->FourthOre, $moon->FourthQuantity); $moon->ThirdOre, $moon->ThirdQuantity, $moon->FourthOre, $moon->FourthQuantity);
dd($price);
//Check the type and figure out which price to add in //Check the type and figure out which price to add in
if($rental->Type == 'alliance') { if($rental->Type == 'alliance') {
$totalCost += (float)$price['alliance']; $totalCost += (float)$price['alliance'];