troubleshooting

This commit is contained in:
2018-10-25 23:55:07 -05:00
parent 1b79672b49
commit 233a0f1e66

View File

@@ -272,9 +272,9 @@ class MoonCalc {
$actualm3 = floor($percentage * $totalPull);
//Calculate the units once we have the size and actual m3 value
$units = floor($actualm3 / $m3Size);
dd($units);
//Look up the unit price from the database
$unitPrice = DB::table('OrePrices')->where('UnitPrice', $ore)->value('UnitPrice');
dd($unitPrice);
//Calculate the total amount from the units and unit price
$total = $units * $unitPrice;
//Return the value