StructureController

This commit is contained in:
2018-12-07 04:11:47 -06:00
parent 18030ca6ee
commit 929cdf4052

View File

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