fixed some issues on moon total worth

This commit is contained in:
2020-05-08 01:04:26 -05:00
parent 59c29e3a40
commit b00fd7d177
2 changed files with 1 additions and 9 deletions

View File

@@ -382,12 +382,6 @@ class MoonsController extends Controller
$fourthQuantity = $fourthQuantity / $totalPercent;
}
//Calculate the total moon goo value
$totalGoo = $moonCalc->SpatialMoonsOnlyGooTotalWorth($firstOre, $firstQuantity, $secondOre, $secondQuantity,
$thirdOre, $thirdQuantity, $fourthOre, $fourthQuantity);
//Format the number to send to the blade
$totalGoo = number_format($totalGoo, 2, ".", ",");
//Calculate the total worth of the moon
$totalWorth = $moonCalc->SpatialMoonsTotalWorth($firstOre, $firstQuantity, $secondOre, $secondQuantity,
$thirdOre, $thirdQuantity, $fourthOre, $fourthQuantity);
@@ -552,7 +546,6 @@ class MoonsController extends Controller
}
return view('moons.user.displayTotalWorth')->with('totalWorth', $totalWorth)
->with('totalGoo', $totalGoo)
->with('composition', $composition)
->with('reprocessing', $reprocessing);
}

View File

@@ -3,8 +3,7 @@
<div class="container">
<h2>Total Worth of the Moon / Month</h2>
<div class="jumbotron">
Total Moon Goo + Ore Worth: {{ $totalWorth }} ISK<br>
Total Moon Goo Worth: {{ $totalGoo }} ISK<br>
Total Moon Worth: {{ $totalWorth }} ISK<br>
</div>
</div>
<br>