mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 00:04:24 +00:00
Fix issue with transaction journal factory.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user