mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix issue with transaction journal factory.
This commit is contained in:
parent
66f309f5ed
commit
34abc6490c
@ -98,7 +98,7 @@ class TransactionJournalFactory
|
||||
foreach ($data['transactions'] as $index => $trData) {
|
||||
Log::debug(sprintf('Now storing transaction %d of %d', $index + 1, \count($data['transactions'])));
|
||||
$factory->createPair($journal, $trData);
|
||||
$totalAmount = bcadd($totalAmount, $trData['amount'] ?? '0');
|
||||
$totalAmount = bcadd($totalAmount, (string)($trData['amount'] ?? '0'));
|
||||
}
|
||||
$journal->completed = true;
|
||||
$journal->save();
|
||||
|
Loading…
Reference in New Issue
Block a user