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

@@ -268,7 +268,6 @@ class AccountRepository implements AccountRepositoryInterface
if (count($ids) > 0) {
$accounts = $this->user->accounts()->whereIn('id', $ids)->where('accounts.active', 1)->get();
}
bcscale(2);
$accounts->each(
function (Account $account) use ($start, $end) {
@@ -309,7 +308,6 @@ class AccountRepository implements AccountRepositoryInterface
$start = clone session('start', new Carbon);
$end = clone session('end', new Carbon);
bcscale(2);
$accounts->each(
function (Account $account) use ($start, $end) {

View File

@@ -78,7 +78,6 @@ class JournalRepository implements JournalRepositoryInterface
->where('transaction_journals.order', '>=', $journal->order)
->where('transaction_journals.id', '!=', $journal->id)
->get(['transactions.*']);
bcscale(2);
$sum = '0';
foreach ($set as $entry) {
$sum = bcadd($entry->amount, $sum);

View File

@@ -131,7 +131,6 @@ class TagRepository implements TagRepositoryInterface
// because there will be less of them any way.
$tags = $this->user->tags()->where('tagMode', 'balancingAct')->get();
$amount = '0';
bcscale(2);
/** @var Tag $tag */
foreach ($tags as $tag) {