Remove reference to temp_amount

This commit is contained in:
James Cole
2018-11-12 19:17:17 +01:00
parent d78e11170b
commit d1c7a9767a
3 changed files with 1 additions and 6 deletions

View File

@@ -128,8 +128,6 @@ class TransactionJournalFactory
// invalidate cache. // invalidate cache.
app('preferences')->mark(); app('preferences')->mark();
$journal->temp_amount = $totalAmount;
return $journal; return $journal;
} }

View File

@@ -469,7 +469,7 @@ class ImportArrayStorage
continue; 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)); Log::debug(sprintf('Stored as journal #%d', $journal->id));
$collection->push($journal); $collection->push($journal);

View File

@@ -60,9 +60,6 @@ class JournalUpdateService
*/ */
public function update(TransactionJournal $journal, array $data): TransactionJournal public function update(TransactionJournal $journal, array $data): TransactionJournal
{ {
// just in case.
unset($journal->temp_amount);
// update journal: // update journal:
$journal->description = $data['description']; $journal->description = $data['description'];
$journal->date = $data['date']; $journal->date = $data['date'];