From b4ab55fc89e521d562cef32bf9cb466fe0f12ca3 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 25 Feb 2021 21:56:34 +0900 Subject: [PATCH] mining taxes invoices --- app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php b/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php index 342e83daf..0ce41e17c 100644 --- a/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php +++ b/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php @@ -77,6 +77,9 @@ class MiningTaxesInvoices extends Command //Taly up the item composition from each row and multiply by the quantity foreach($rows as $row) { + if(!isset($ores[$row->type_id])) { + $ores[$row->type_id] = 0; + } $ores[$row->type_id] = $ores[$row->type_id] + $row->quantity; }