diff --git a/app/Console/Commands/MiningTaxes/MiningTaxesLedgers.php b/app/Console/Commands/MiningTaxes/MiningTaxesLedgers.php index 75ed8d3ce..757d7d1a3 100644 --- a/app/Console/Commands/MiningTaxes/MiningTaxesLedgers.php +++ b/app/Console/Commands/MiningTaxes/MiningTaxesLedgers.php @@ -101,10 +101,9 @@ class MiningTaxesLedgers extends Command $charName = $lookup->CharacterIdToName($ledger->character_id); //Get the type name from the ledger ore stuff $typeName = $lookup->ItemIdToName($ledger->type_id); - //Decode the date and store it. - //$updated = $esiHelper->DecodeDate($ledger->last_updated); - + //Get the price from the helper function $price = $mHelper->CalculateOrePrice($ledger->type_id); + //Calculate the total price based on the amount $amount = $price * $ledger->quantity; //Insert or update the entry in the database