mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-03 11:08:28 +00:00
Change the precision. Should not influence anything.
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user