Skip to content

Commit

Permalink
hotfix - add missing ESS amount to the corporation bounty ledger (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
warlof authored and leonjza committed Mar 17, 2018
1 parent 01a90cc commit 86c8bcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Repositories/Corporation/Ledger.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function getCorporationLedgerBountyPrizeDates(int $corporation_id): Colle
return DB::table('corporation_wallet_journals')
->select(DB::raw('DISTINCT MONTH(date) as month, YEAR(date) as year'))
->where('corporationID', $corporation_id)
->where('refTypeID', '85')
->whereIn('refTypeID', [17, 85])
->orderBy('date', 'desc')
->get();
}
Expand Down Expand Up @@ -92,7 +92,7 @@ public function getCorporationLedgerBountyPrizeByMonth(int $corporation_id,
'ROUND(SUM(amount)) as total, ownerName2, ownerID2'
))
->where('corporationID', $corporation_id)
->where('refTypeID', '85')
->whereIn('refTypeID', [17, 85])
->where(DB::raw('YEAR(date)'), ! is_null($year) ? $year : date('Y'))
->where(DB::raw('MONTH(date)'), ! is_null($month) ? $month : date('m'))
->groupBy('ownerName2')
Expand Down

0 comments on commit 86c8bcc

Please sign in to comment.