structure controller

This commit is contained in:
2018-12-08 00:25:11 -06:00
parent f7542e99b6
commit de51c1bbd7

View File

@@ -72,7 +72,7 @@ class StructureController extends Controller
/**
* Calculate the final taxes and send to display
*/
$taxes = DB::table('CorpStructures')->where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])
$taxes = DB::table('CorpStructures')->where(['corporation_id' => $corporation])
->avg('tax');
//$taxes = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])->get(['tax']);
//$rTaxes = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Refinery'])->get(['tax']);