mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-07 06:33:57 -06:00
Fixed incorrect average of expectedAmount in active bills.
This commit is contained in:
parent
3be84d76ef
commit
11d59c8bd1
@ -77,7 +77,7 @@ class BillRepository implements BillRepositoryInterface
|
|||||||
->get(
|
->get(
|
||||||
[
|
[
|
||||||
'bills.*',
|
'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');
|
)->sortBy('name');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user