troubleshooting
This commit is contained in:
@@ -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
17
app/OrePrice.php
Normal 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';
|
||||
}
|
||||
@@ -21,7 +21,6 @@ class CreateOrepricesTable extends Migration
|
||||
$table->decimal('UnitPrice', 20, 2);
|
||||
$table->decimal('m3Price', 20, 2);
|
||||
$table->string('Time');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user