fixed some issues on moon total worth
This commit is contained in:
@@ -382,12 +382,6 @@ class MoonsController extends Controller
|
|||||||
$fourthQuantity = $fourthQuantity / $totalPercent;
|
$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
|
//Calculate the total worth of the moon
|
||||||
$totalWorth = $moonCalc->SpatialMoonsTotalWorth($firstOre, $firstQuantity, $secondOre, $secondQuantity,
|
$totalWorth = $moonCalc->SpatialMoonsTotalWorth($firstOre, $firstQuantity, $secondOre, $secondQuantity,
|
||||||
$thirdOre, $thirdQuantity, $fourthOre, $fourthQuantity);
|
$thirdOre, $thirdQuantity, $fourthOre, $fourthQuantity);
|
||||||
@@ -552,7 +546,6 @@ class MoonsController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
return view('moons.user.displayTotalWorth')->with('totalWorth', $totalWorth)
|
return view('moons.user.displayTotalWorth')->with('totalWorth', $totalWorth)
|
||||||
->with('totalGoo', $totalGoo)
|
|
||||||
->with('composition', $composition)
|
->with('composition', $composition)
|
||||||
->with('reprocessing', $reprocessing);
|
->with('reprocessing', $reprocessing);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<h2>Total Worth of the Moon / Month</h2>
|
<h2>Total Worth of the Moon / Month</h2>
|
||||||
<div class="jumbotron">
|
<div class="jumbotron">
|
||||||
Total Moon Goo + Ore Worth: {{ $totalWorth }} ISK<br>
|
Total Moon Worth: {{ $totalWorth }} ISK<br>
|
||||||
Total Moon Goo Worth: {{ $totalGoo }} ISK<br>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
Reference in New Issue
Block a user