Check account balance after creating a transaction.
This commit is contained in:
parent
116b1c4ed9
commit
f0caabfb53
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ class Finance::TransactionsController < ApplicationController
|
|||
begin
|
||||
@group.add_financial_transaction(amount, note, @current_user)
|
||||
flash[:notice] = 'Transaktion erfolgreich angelegt.'
|
||||
redirect_to :action => 'index'
|
||||
redirect_to :action => 'list', :id => @group
|
||||
rescue => e
|
||||
@financial_transaction = FinancialTransaction.new(params[:financial_transaction])
|
||||
flash.now[:error] = 'Transaktion konnte nicht angelegt werden!' + ' (' + e.message + ')'
|
||||
|
|
Loading…
Reference in a new issue