moon mailer
This commit is contained in:
@@ -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'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user