Merge pull request #238 from nhaarman/fix_active-bill-expected-amount

Fixed incorrect average of expectedAmount in active bills.
This commit is contained in:
James Cole 2016-04-04 18:58:42 +02:00
commit ac27659a59

View File

@ -77,7 +77,7 @@ class BillRepository implements BillRepositoryInterface
->get(
[
'bills.*',
DB::raw('(`bills`.`amount_min` + `bills`.`amount_max` / 2) as `expectedAmount`'),
DB::raw('((`bills`.`amount_min` + `bills`.`amount_max`) / 2) as `expectedAmount`'),
]
)->sortBy('name');