diff --git a/app/Library/MoonCalc.php b/app/Library/MoonCalc.php index f88f13e93..fdca86be7 100644 --- a/app/Library/MoonCalc.php +++ b/app/Library/MoonCalc.php @@ -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; } diff --git a/app/OrePrice.php b/app/OrePrice.php new file mode 100644 index 000000000..111d513ab --- /dev/null +++ b/app/OrePrice.php @@ -0,0 +1,17 @@ +decimal('UnitPrice', 20, 2); $table->decimal('m3Price', 20, 2); $table->string('Time'); - $table->timestamps(); }); }