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

@@ -124,7 +124,6 @@ class BalanceLine
*/
public function leftOfRepetition(): string
{
bcscale(2);
$start = $this->budget->amount ?? '0';
/** @var BalanceEntry $balanceEntry */
foreach ($this->getBalanceEntries() as $balanceEntry) {

View File

@@ -46,7 +46,6 @@ class Budget
public function addBudgeted(string $add)
{
$add = strval(round($add, 2));
bcscale(2);
$this->budgeted = bcadd($this->budgeted, $add);
}
@@ -56,7 +55,6 @@ class Budget
public function addLeft(string $add)
{
$add = strval(round($add, 2));
bcscale(2);
$this->left = bcadd($this->left, $add);
}
@@ -66,7 +64,6 @@ class Budget
public function addOverspent(string $add)
{
$add = strval(round($add, 2));
bcscale(2);
$this->overspent = bcadd($this->overspent, $add);
}
@@ -76,7 +73,6 @@ class Budget
public function addSpent(string $add)
{
$add = strval(round($add, 2));
bcscale(2);
$this->spent = bcadd($this->spent, $add);
}

View File

@@ -47,7 +47,6 @@ class Category
public function addTotal(string $add)
{
$add = strval(round($add, 2));
bcscale(2);
$this->total = bcadd($this->total, $add);
}

View File

@@ -34,7 +34,6 @@ class Expense
*/
public function addOrCreateExpense(TransactionJournal $entry)
{
bcscale(2);
$accountId = $entry->account_id;
$amount = strval(round($entry->journalAmount, 2));
@@ -62,7 +61,6 @@ class Expense
*/
public function addToTotal(string $add)
{
bcscale(2);
$add = strval(round($add, 2));

View File

@@ -45,7 +45,6 @@ class Income
$newObject->id = $accountId;
$this->incomes->put($accountId, $newObject);
} else {
bcscale(2);
$existing = $this->incomes->get($accountId);
$existing->amount = bcadd($existing->amount, $entry->journalAmount);
$existing->count++;
@@ -59,7 +58,6 @@ class Income
public function addToTotal(string $add)
{
$add = strval(round($add, 2));
bcscale(2);
$this->total = bcadd($this->total, $add);
}