diff --git a/app/views/asset_events/_rehabilitation_update_event_form.html.haml b/app/views/asset_events/_rehabilitation_update_event_form.html.haml index 8dad53b8..b47dcecc 100644 --- a/app/views/asset_events/_rehabilitation_update_event_form.html.haml +++ b/app/views/asset_events/_rehabilitation_update_event_form.html.haml @@ -17,7 +17,7 @@ = f.input :total_cost, :wrapper => :vertical_prepend, label: 'Cost of Rebuild / Rehabilitation' do %span.input-group-addon %i.fa.fa-usd - = f.input_field :total_cost, :class => 'form-control', :required => true, :value => 0, :min => 0, :label => false + = f.input_field :total_cost, :class => 'form-control', :required => true, :value => (f.object.total_cost || 0), :min => 0, :label => false %span.input-group-addon %a.transam-popover{data: {placement: 'auto', toggle: 'popover', html: 'true', content: "This will increase the Cost (Adjusted) of the asset by the amount entered."}, title: 'Cost of Rebuild / Rehabilitation', tabindex: '0'} %i.fa.fa-info-circle