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
|
//Get the characters for each non-invoiced ledger entry
|
||||||
$charIds = Ledger::distinct('character_id')->pluck('character_id');
|
$charIds = Ledger::distinct('character_id')->pluck('character_id');
|
||||||
dd($charIds);
|
|
||||||
//Foreach character tally up the mining ledger.
|
//Foreach character tally up the mining ledger.
|
||||||
foreach($charIds as $charId) {
|
foreach($charIds as $charId) {
|
||||||
//Declare some variables we need for each iteration of the loop
|
//Declare some variables we need for each iteration of the loop
|
||||||
$invoice = array();
|
$invoice = array();
|
||||||
$ores = array();
|
$ores = array();
|
||||||
$totalPrice = 0.00;
|
$totalPrice = 0.00;
|
||||||
//Get the rows from the database for each character and the requirement of not been
|
//Get the rows from the database for each character and the requirement of not been invoiced yet
|
||||||
//invoiced yet
|
|
||||||
$rows = Ledger::where([
|
$rows = Ledger::where([
|
||||||
'character_id' => $charId,
|
'character_id' => $charId,
|
||||||
'invoiced' => 'No',
|
'invoiced' => 'No',
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class Ledger extends Model
|
|||||||
protected $table = 'alliance_mining_tax_ledgers';
|
protected $table = 'alliance_mining_tax_ledgers';
|
||||||
|
|
||||||
//Timestamps
|
//Timestamps
|
||||||
public $timestamps = true;
|
public $timestamps = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Items which are mass assignable
|
* Items which are mass assignable
|
||||||
|
|||||||
@@ -60,7 +60,6 @@ class CreateMiningTaxTables extends Migration
|
|||||||
'Yes',
|
'Yes',
|
||||||
])->default('No');
|
])->default('No');
|
||||||
$table->string('invoice_id')->nullable();
|
$table->string('invoice_id')->nullable();
|
||||||
$table->timestamps();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user