Skip to content

Firefly III: a personal finances manager

Remove reference to temp_amount

James Coled1c7a9767a53
diff --git a/app/Factory/TransactionJournalFactory.php b/app/Factory/TransactionJournalFactory.php
index 6428d645fe..a0c06923b0 100644
--- a/app/Factory/TransactionJournalFactory.php
+++ b/app/Factory/TransactionJournalFactory.php
@@ -128,8 +128,6 @@ class TransactionJournalFactory
// invalidate cache.
app('preferences')->mark();
- $journal->temp_amount = $totalAmount;
-
return $journal;
}
diff --git a/app/Import/Storage/ImportArrayStorage.php b/app/Import/Storage/ImportArrayStorage.php
index 6458bdfda4..6f7601a78d 100644
--- a/app/Import/Storage/ImportArrayStorage.php
+++ b/app/Import/Storage/ImportArrayStorage.php
@@ -469,7 +469,7 @@ class ImportArrayStorage
continue;
}
- Log::info(sprintf('Stored #%d: "%s" %s (ID #%d)', $index, $journal->description, round($journal->temp_amount, 2), $journal->id));
+ Log::info(sprintf('Stored #%d: "%s" (ID #%d)', $index, $journal->description, $journal->id));
Log::debug(sprintf('Stored as journal #%d', $journal->id));
$collection->push($journal);
diff --git a/app/Services/Internal/Update/JournalUpdateService.php b/app/Services/Internal/Update/JournalUpdateService.php
index 89c3e5b9e0..483218200f 100644
--- a/app/Services/Internal/Update/JournalUpdateService.php
+++ b/app/Services/Internal/Update/JournalUpdateService.php
@@ -60,9 +60,6 @@ class JournalUpdateService
*/
public function update(TransactionJournal $journal, array $data): TransactionJournal
{
- // just in case.
- unset($journal->temp_amount);
-
// update journal:
$journal->description = $data['description'];
$journal->date = $data['date'];