structure controller

This commit is contained in:
2018-12-08 00:47:24 -06:00
parent 90e1bf807a
commit 27356a2759

View File

@@ -72,7 +72,7 @@ class StructureController extends Controller
/**
* Calculate the final taxes and send to display
*/
$mTax = DB::table('CorpStructures')->select(DB::raw('avg(tax)'))->where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])->get();
$mTax = DB::select('SELECT AVG(tax) FROM CorpStructures WHERE corporation_id = ? AND structure_type = ?', [$corporation, 'Citadel']);
dd($mTax);
$monthTaxesMarket = $tempMonthTaxesMarket - $marketFuelCost;