Change the precision. Should not influence anything.

This commit is contained in:
James Cole
2016-03-16 17:47:07 +01:00
parent 64f273120e
commit fe9b8e834d
33 changed files with 4 additions and 57 deletions

View File

@@ -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);

View File

@@ -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,

View File

@@ -68,7 +68,6 @@ class ChartJsBudgetChartGenerator implements BudgetChartGeneratorInterface
*/
public function frontpage(Collection $entries): array
{
bcscale(2);
$data = [
'count' => 0,
'labels' => [],

View File

@@ -89,7 +89,6 @@ class ChartJsCategoryChartGenerator implements CategoryChartGeneratorInterface
*/
public function frontpage(Collection $entries): array
{
bcscale(2);
$data = [
'count' => 1,
'labels' => [],

View File

@@ -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);