No need to check for opening balance.

This commit is contained in:
James Cole
2016-01-15 19:48:35 +01:00
parent 3649b595df
commit 31533b5ef8

View File

@@ -345,10 +345,6 @@ class TransactionController extends Controller
public function update(JournalFormRequest $request, JournalRepositoryInterface $repository, AttachmentHelperInterface $att, TransactionJournal $journal)
{
if ($journal->isOpeningBalance()) {
return view('error')->with('message', 'Cannot edit this transaction. Edit the account instead!');
}
$journalData = $request->getJournalData();
$repository->update($journal, $journalData);