Some last-minute fixes.

This commit is contained in:
James Cole
2018-07-03 17:48:26 +02:00
parent 53addcf99a
commit 18b06ff283
7 changed files with 50 additions and 12 deletions

View File

@@ -101,6 +101,11 @@ class JournalRepository implements JournalRepositoryInterface
$transaction->budgets()->detach();
}
}
// if journal is not a withdrawal, remove the bill ID.
if (TransactionType::WITHDRAWAL !== $type->type) {
$journal->bill_id = null;
$journal->save();
}
Preferences::mark();