troubleshooting
This commit is contained in:
@@ -272,13 +272,12 @@ class MoonCalc {
|
|||||||
$actualm3 = floor($percentage * $totalPull);
|
$actualm3 = floor($percentage * $totalPull);
|
||||||
//Calculate the units once we have the size and actual m3 value
|
//Calculate the units once we have the size and actual m3 value
|
||||||
$units = floor($actualm3 / $m3Size);
|
$units = floor($actualm3 / $m3Size);
|
||||||
|
dd($units);
|
||||||
//Look up the unit price from the database
|
//Look up the unit price from the database
|
||||||
$unitPrice = DB::table('OrePrices')->where('UnitPrice', $ore)->value('UnitPrice');
|
$unitPrice = DB::table('OrePrices')->where('UnitPrice', $ore)->value('UnitPrice');
|
||||||
//Calculate the total amount from the units and unit price
|
//Calculate the total amount from the units and unit price
|
||||||
$total = $units * $unitPrice;
|
$total = $units * $unitPrice;
|
||||||
//Return the value
|
//Return the value
|
||||||
|
|
||||||
dd($total);
|
|
||||||
return $total;
|
return $total;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user