mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-24 20:55:31 +00:00
Fixed a bug where the bill chart and boxes would inaccurately reflect the amount of bills yet to pay.
This commit is contained in:
@@ -302,7 +302,7 @@ class GoogleChartController extends Controller
|
||||
/** @var Bill $entry */
|
||||
foreach ($unpaid as $entry) {
|
||||
$unpaidDescriptions[] = $entry[0]->name . ' (' . $entry[1]->format('jS M Y') . ')';
|
||||
$unpaidAmount += ($entry[0]->amount_max + $entry[0]->amount_min / 2);
|
||||
$unpaidAmount += ($entry[0]->amount_max + $entry[0]->amount_min) / 2;
|
||||
}
|
||||
|
||||
$chart->addRow('Unpaid: ' . join(', ', $unpaidDescriptions), $unpaidAmount);
|
||||
|
||||
Reference in New Issue
Block a user