mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-21 19:49:54 +00:00
Change the precision. Should not influence anything.
This commit is contained in:
@@ -30,7 +30,6 @@ class ChartJsAccountChartGenerator implements AccountChartGeneratorInterface
|
||||
'label' => trans('firefly.spent'),
|
||||
'data' => []]]];
|
||||
|
||||
bcscale(2);
|
||||
$start->subDay();
|
||||
$ids = $this->getIdsFromCollection($accounts);
|
||||
$startBalances = Steam::balancesById($ids, $start);
|
||||
|
@@ -30,7 +30,6 @@ class ChartJsBillChartGenerator implements BillChartGeneratorInterface
|
||||
*/
|
||||
public function frontpage(string $paid, string $unpaid): array
|
||||
{
|
||||
bcscale(2);
|
||||
$data = [
|
||||
[
|
||||
'value' => round($unpaid, 2),
|
||||
@@ -57,7 +56,6 @@ class ChartJsBillChartGenerator implements BillChartGeneratorInterface
|
||||
*/
|
||||
public function single(Bill $bill, Collection $entries): array
|
||||
{
|
||||
bcscale(2);
|
||||
$format = (string)trans('config.month');
|
||||
$data = [
|
||||
'count' => 3,
|
||||
|
@@ -68,7 +68,6 @@ class ChartJsBudgetChartGenerator implements BudgetChartGeneratorInterface
|
||||
*/
|
||||
public function frontpage(Collection $entries): array
|
||||
{
|
||||
bcscale(2);
|
||||
$data = [
|
||||
'count' => 0,
|
||||
'labels' => [],
|
||||
|
@@ -89,7 +89,6 @@ class ChartJsCategoryChartGenerator implements CategoryChartGeneratorInterface
|
||||
*/
|
||||
public function frontpage(Collection $entries): array
|
||||
{
|
||||
bcscale(2);
|
||||
$data = [
|
||||
'count' => 1,
|
||||
'labels' => [],
|
||||
|
@@ -36,7 +36,6 @@ class ChartJsPiggyBankChartGenerator implements PiggyBankChartGeneratorInterface
|
||||
],
|
||||
];
|
||||
$sum = '0';
|
||||
bcscale(2);
|
||||
foreach ($set as $entry) {
|
||||
$date = new Carbon($entry->date);
|
||||
$sum = bcadd($sum, $entry->sum);
|
||||
|
Reference in New Issue
Block a user