Remove reference to temp_amount

This commit is contained in:
James Cole 2018-11-12 19:17:17 +01:00
parent d78e11170b
commit d1c7a9767a
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
3 changed files with 1 additions and 6 deletions

View File

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

View File

@ -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);

View File

@ -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'];