structure controller

This commit is contained in:
2018-12-08 00:14:50 -06:00
parent 07d6016606
commit a8a4755a81

View File

@@ -72,8 +72,8 @@ class StructureController extends Controller
/** /**
* Calculate the final taxes and send to display * Calculate the final taxes and send to display
*/ */
$tax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])->avg('tax'); $tax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])->avg('tax')->get();
$rTax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Refinery'])->avg('tax'); $rTax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Refinery'])->avg('tax')->get();
dd($tax); dd($tax);
$monthTaxesMarket = $tempMonthTaxesMarket - $marketFuelCost; $monthTaxesMarket = $tempMonthTaxesMarket - $marketFuelCost;