From b8e6e71da6bf26c34a41683d3abcd50423d1e61c Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 31 May 2019 21:53:16 -0500 Subject: [PATCH] moon mailer --- app/Console/Commands/moonmailer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/moonmailer.php b/app/Console/Commands/moonmailer.php index e2e10b1dc..b374ec771 100644 --- a/app/Console/Commands/moonmailer.php +++ b/app/Console/Commands/moonmailer.php @@ -185,12 +185,12 @@ class MoonMailerCommand extends Command //Get the updated price for the moon $price = $moonCalc->SpatialMoonsOnlyGoo($moon->FirstOre, $moon->FirstQuantity, $moon->SecondOre, $moon->SecondQuantity, $moon->ThirdOre, $moon->ThirdQuantity, $moon->FourthOre, $moon->FourthQuantity); - dd($price); + //Check the type and figure out which price to add in if($rental->Type == 'alliance') { - $totalCost += $price['alliance']; + $totalCost += (int)$price['alliance']; } else{ - $totalCost += $price['outofalliance']; + $totalCost += (int)$price['outofalliance']; } }