From 3aa163b8c1415a661f02baedccdc925d20f478bb Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 25 Oct 2018 23:53:53 -0500 Subject: [PATCH] troubleshooting --- app/Library/MoonCalc.php | 3 ++- app/OrePrice.php | 17 +++++++++++++++++ ...2018_10_24_033246_create_oreprices_table.php | 1 - 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 app/OrePrice.php 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(); }); }