industry taxes testing

This commit is contained in:
2019-01-05 19:51:36 -06:00
parent ecd0461b55
commit 0a5119c24d
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -44,7 +44,8 @@ class StructureController extends Controller
//Get the dates we are working with
$dates = $sHelper->GetTimeFrameInMonths($months);
//Get a list of structures
//Get a list of structures - context_id is not structure id, it's job id.
$structures = StructureIndustryTaxJournal::select('context_id')
->whereBetween('date', [$dates[0]['start'], $dates[0]['end']])
->groupBy('context_id')
@@ -84,7 +84,7 @@ class FinanceHelper {
($entry['ref_type'] == 'corporation_account_withdrawal' && $entry['second_party_id'] == 98287666)) {
$other = new PlayerDonation();
$other->InsertPlayerDonation($entry, $corpId, $division);
} else if($entry['ref_type'] == 'industry_facility_tax' && $entry['second_party_id'] == 98287666) {
} else if($entry['ref_type'] == 'industry_job_tax' && $entry['second_party_id'] == 98287666) {
$industry = new StructureIndustryTax();
$industry->InsertStructureIndustryTax($entry, $corpId, $division);
}