structure controller

This commit is contained in:
2018-12-08 00:10:31 -06:00
parent cc3fde74ee
commit 07d6016606
2 changed files with 6 additions and 3 deletions

View File

@@ -7,8 +7,9 @@ use Carbon\Carbon;
use DB; use DB;
use Commands\Library\CommandHelper; use Commands\Library\CommandHelper;
use App\Library\Esi\EsiScope; use App\Models\Esi\EsiScope;
use App\Library\Esi\EsiToken; use App\Models\Esi\EsiToken;
use App\Library\Mail;
use App\Models\ScheduledTask\ScheduleJob; use App\Models\ScheduledTask\ScheduleJob;
use Seat\Eseye\Cache\NullCache; use Seat\Eseye\Cache\NullCache;
@@ -30,7 +31,7 @@ class sendMail extends Command
* *
* @var string * @var string
*/ */
protected $description = 'Send mail to a character'; protected $description = 'Send mail to a character for taxes owed.';
/** /**
* Create a new command instance. * Create a new command instance.
@@ -58,6 +59,7 @@ class sendMail extends Command
$task->SetStartStatus(); $task->SetStartStatus();
//Put our task in this section //Put our task in this section
$mail = new Mail;
//Mark the job as finished //Mark the job as finished
$task->SetStopStatus(); $task->SetStopStatus();

View File

@@ -74,6 +74,7 @@ class StructureController extends Controller
*/ */
$tax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])->avg('tax'); $tax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])->avg('tax');
$rTax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Refinery'])->avg('tax'); $rTax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Refinery'])->avg('tax');
dd($tax);
$monthTaxesMarket = $tempMonthTaxesMarket - $marketFuelCost; $monthTaxesMarket = $tempMonthTaxesMarket - $marketFuelCost;
$monthTaxesMarket = $hFinances->CalculateTax($monthTaxesMarket, 2.5, 'market'); $monthTaxesMarket = $hFinances->CalculateTax($monthTaxesMarket, 2.5, 'market');