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

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;
}

17
app/OrePrice.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class OrePrice extends Model
{
// Table Name
protected $table = 'OrePrices';
//Primary Key
public $primaryKey = 'id';
// Timestamps
public $timestamps = 'false';
}

View File

@@ -21,7 +21,6 @@ class CreateOrepricesTable extends Migration
$table->decimal('UnitPrice', 20, 2);
$table->decimal('m3Price', 20, 2);
$table->string('Time');
$table->timestamps();
});
}