|
|
@ -129,7 +129,7 @@ class CostTypesController < ApplicationController |
|
|
|
cr.valid_from = today |
|
|
|
cr.valid_from = today |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
rate.rate = parse_number_string_to_number(params[:rate]) |
|
|
|
rate.rate = CostRate.parse_number_string_to_number(params[:rate]) |
|
|
|
if rate.save |
|
|
|
if rate.save |
|
|
|
flash[:notice] = t(:notice_successful_update) |
|
|
|
flash[:notice] = t(:notice_successful_update) |
|
|
|
redirect_to action: 'index' |
|
|
|
redirect_to action: 'index' |
|
|
|