From 0c5b9aeb19e47935f56888b22908e0e2f7656cd0 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 15 Mar 2021 19:57:23 +0900 Subject: [PATCH] fixed invoice --- app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php b/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php index 2d33daa63..2213b9256 100644 --- a/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php +++ b/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php @@ -54,7 +54,6 @@ class MiningTaxesInvoices extends Command //Declare variables $lookup = new LookupHelper; $config = config('esi'); - $body = null; $task = new CommandHelper('MiningTaxesInvoices'); //Set the task as started $task->SetStartStatus(); @@ -68,14 +67,13 @@ class MiningTaxesInvoices extends Command $invoice = array(); $ores = array(); $totalPrice = 0.00; + $body = null; //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', - ])->get()->toArray(); - - var_dump($rows); + ])->get()->toArray(); //Taly up the item composition from each row and multiply by the quantity foreach($rows as $row) {