troubleshooting

This commit is contained in:
2018-10-25 23:53:53 -05:00
parent 9faf041378
commit 3aa163b8c1
3 changed files with 19 additions and 2 deletions
+2 -1
View File
@@ -232,7 +232,6 @@ class MoonCalc {
$batchPrice = $batchPrice * $refineRate;
//Calculate the unit price
$price = $batchPrice / $composition[0]->BatchSize;
dd($price);
//Calculate the m3 price
$m3Price = $price / $composition[0]->m3Size;
//Insert the prices into the Pricees table
@@ -278,6 +277,8 @@ class MoonCalc {
//Calculate the total amount from the units and unit price
$total = $units * $unitPrice;
//Return the value
dd($total);
return $total;
}