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

@@ -29,7 +29,6 @@ class ConnectJournalToPiggyBank
/** @var TransactionJournal $journal */
$journal = $event->journal;
$piggyBankId = $event->piggyBankId;
bcscale(2);
/** @var PiggyBank $piggyBank */
$piggyBank = Auth::user()->piggybanks()->where('piggy_banks.id', $piggyBankId)->first(['piggy_banks.*']);
@@ -42,7 +41,6 @@ class ConnectJournalToPiggyBank
if (is_null($repetition)) {
return true;
}
bcscale(2);
$amount = TransactionJournal::amountPositive($journal);
// if piggy account matches source account, the amount is positive

View File

@@ -43,7 +43,6 @@ class UpdateJournalConnection
if (is_null($repetition)) {
return false;
}
bcscale(2);
$amount = TransactionJournal::amount($journal);
$diff = bcsub($amount, $event->amount); // update current repetition