mining taxes invoices
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -60,7 +60,6 @@ class CreateMiningTaxTables extends Migration
|
||||
'Yes',
|
||||
])->default('No');
|
||||
$table->string('invoice_id')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user