mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 19:01:39 +00:00
Forgot to do * -1. [skip ci]
This commit is contained in:
@@ -193,7 +193,7 @@ class BudgetController extends Controller
|
|||||||
if (bccomp($row['spent'], '0') !== 0) {
|
if (bccomp($row['spent'], '0') !== 0) {
|
||||||
$chartData[0]['entries'][$row['name']] = bcmul($row['spent'], '-1');
|
$chartData[0]['entries'][$row['name']] = bcmul($row['spent'], '-1');
|
||||||
$chartData[1]['entries'][$row['name']] = $row['repetition_left'];
|
$chartData[1]['entries'][$row['name']] = $row['repetition_left'];
|
||||||
$chartData[2]['entries'][$row['name']] = $row['repetition_overspent'];
|
$chartData[2]['entries'][$row['name']] = bcmul($row['repetition_overspent'], '-1');
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -202,7 +202,7 @@ class BudgetController extends Controller
|
|||||||
if (bccomp($row['spent'], '0') !== 0) {
|
if (bccomp($row['spent'], '0') !== 0) {
|
||||||
$chartData[0]['entries'][$row['name']] = bcmul($row['spent'], '-1');
|
$chartData[0]['entries'][$row['name']] = bcmul($row['spent'], '-1');
|
||||||
$chartData[1]['entries'][$row['name']] = $row['repetition_left'];
|
$chartData[1]['entries'][$row['name']] = $row['repetition_left'];
|
||||||
$chartData[2]['entries'][$row['name']] = $row['repetition_overspent'];
|
$chartData[2]['entries'][$row['name']] = bcmul($row['repetition_overspent'], '-1');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($rows, $row);
|
unset($rows, $row);
|
||||||
@@ -213,7 +213,7 @@ class BudgetController extends Controller
|
|||||||
if (bccomp($row['spent'], '0') !== 0) {
|
if (bccomp($row['spent'], '0') !== 0) {
|
||||||
$chartData[0]['entries'][$row['name']] = bcmul($row['spent'], '-1');
|
$chartData[0]['entries'][$row['name']] = bcmul($row['spent'], '-1');
|
||||||
$chartData[1]['entries'][$row['name']] = $row['repetition_left'];
|
$chartData[1]['entries'][$row['name']] = $row['repetition_left'];
|
||||||
$chartData[2]['entries'][$row['name']] = $row['repetition_overspent'];
|
$chartData[2]['entries'][$row['name']] = bcmul($row['repetition_overspent'], '-1');
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @var GeneratorInterface $generator */
|
/** @var GeneratorInterface $generator */
|
||||||
|
Reference in New Issue
Block a user