moon mailer

This commit is contained in:
2019-05-31 21:55:15 -05:00
parent b8e6e71da6
commit ba289865ac
2 changed files with 75 additions and 3 deletions
+3 -3
View File
@@ -184,13 +184,13 @@ 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);
$moon->ThirdOre, $moon->ThirdQuantity, $moon->FourthOre, $moon->FourthQuantity);
//Check the type and figure out which price to add in
if($rental->Type == 'alliance') {
$totalCost += (int)$price['alliance'];
$totalCost += ($price['alliance'] * 1.00);
} else{
$totalCost += (int)$price['outofalliance'];
$totalCost += ($price['outofalliance'] * 1.00);
}
}