diff --git a/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php b/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php index 129382ce4..3d3ae084d 100644 --- a/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php +++ b/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php @@ -61,15 +61,14 @@ class MiningTaxesInvoices extends Command //Get the characters for each non-invoiced ledger entry $charIds = Ledger::distinct('character_id')->pluck('character_id'); - dd($charIds); + //Foreach character tally up the mining ledger. foreach($charIds as $charId) { //Declare some variables we need for each iteration of the loop $invoice = array(); $ores = array(); $totalPrice = 0.00; - //Get the rows from the database for each character and the requirement of not been - //invoiced yet + //Get the rows from the database for each character and the requirement of not been invoiced yet $rows = Ledger::where([ 'character_id' => $charId, 'invoiced' => 'No', diff --git a/app/Models/MiningTax/Ledger.php b/app/Models/MiningTax/Ledger.php index 3446ac10b..efe913b23 100644 --- a/app/Models/MiningTax/Ledger.php +++ b/app/Models/MiningTax/Ledger.php @@ -10,7 +10,7 @@ class Ledger extends Model protected $table = 'alliance_mining_tax_ledgers'; //Timestamps - public $timestamps = true; + public $timestamps = false; /** * Items which are mass assignable diff --git a/database/migrations/2021_01_10_164334_create_mining_tax_tables.php b/database/migrations/2021_01_10_164334_create_mining_tax_tables.php index 8c0b1db90..b0d1005bd 100644 --- a/database/migrations/2021_01_10_164334_create_mining_tax_tables.php +++ b/database/migrations/2021_01_10_164334_create_mining_tax_tables.php @@ -60,7 +60,6 @@ class CreateMiningTaxTables extends Migration 'Yes', ])->default('No'); $table->string('invoice_id')->nullable(); - $table->timestamps(); }); }