moon mailer

This commit is contained in:
2019-05-31 21:53:16 -05:00
parent cff50a10fa
commit b8e6e71da6

View File

@@ -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'];
}
}