Update various tests and the composer lock file.

This commit is contained in:
James Cole
2016-12-18 10:37:59 +01:00
parent 3d8adfa7e4
commit 7716ff4e8c
16 changed files with 161 additions and 233 deletions

View File

@@ -82,10 +82,15 @@ class JournalRepository implements JournalRepositoryInterface
$destinationTransaction->save();
$journal->transaction_type_id = $type->id;
$journal->save();
Preferences::mark();
$messages = new MessageBag;
return $messages;
// if journal is a transfer now, remove budget:
if ($type->type === TransactionType::TRANSFER) {
$journal->budgets()->detach();
}
Preferences::mark();
return new MessageBag;
}
/**