<% if existing_house_pn_id.present? %>
Movimento di partenza: <%= existing_house_pn_id.present? ? 'giĆ esistente' : 'nuovo' %>
Dati base del movimento di prima nota
<%= edit_table_open %>
<%= edit_table_row HousePn.human_attribute_name(:house_pn_fund_id),( existing_house_pn.house_pn_fund.descrizione ) %>
<%= edit_table_row HousePn.human_attribute_name(:data),( existing_house_pn.data.present? ? existing_house_pn.data.to_dmy : nil ) %>
<%= edit_table_row HousePn.human_attribute_name(:importo),( money_format(existing_house_pn.importo) ) %>
<%= edit_table_row HousePn.human_attribute_name(:competenza),( daterange_name(existing_house_pn.competenza) ) %>
<%= edit_table_row HousePn.human_attribute_name(:descrizione),( text_area_tag :descrizione, existing_house_pn.descrizione, cols: 45, rows: 10, disabled: true) %>
<%= edit_table_row HousePn.human_attribute_name(:house_crb_id),( existing_house_pn.house_crb_id.present? ? link_to( existing_house_pn.house_crb.format_for_formselect, house_crb_path(existing_house_pn.house_crb.id) ) : nil ) %>
<%= edit_table_close %>
<%= iconbutton_view existing_house_pn %>
<%= iconbutton_edit edit_house_pn_path(existing_house_pn, @filter_params), 'Modifica' %>
|
<% end %>
Movimento girocontante
<%= edit_table_open %>
<%= edit_table_row HousePn.human_attribute_name(:house_pn_fund_id),( subtract_house_pn.house_pn_fund.descrizione ) %>
<%= edit_table_row HousePn.human_attribute_name(:data),( subtract_house_pn.data.present? ? subtract_house_pn.data.to_dmy : nil ) %>
<%= edit_table_row HousePn.human_attribute_name(:importo),( money_format(subtract_house_pn.importo) ) %>
<%= edit_table_row HousePn.human_attribute_name(:competenza),( daterange_name(subtract_house_pn.competenza) ) %>
<%= edit_table_row HousePn.human_attribute_name(:descrizione),( text_area_tag :descrizione, subtract_house_pn.descrizione, cols: 45, rows: 10, disabled: true) %>
<%= edit_table_row HousePn.human_attribute_name(:house_crb_id),( subtract_house_pn.house_crb_id.present? ? link_to( subtract_house_pn.house_crb.format_for_formselect, house_crb_path(subtract_house_pn.house_crb.id) ) : nil ) %>
<%= edit_table_close %>
<%= iconbutton_view subtract_house_pn %>
<%= iconbutton_edit edit_house_pn_path(subtract_house_pn, @filter_params), 'Modifica' %>
|
Movimento girocontato
<%= edit_table_open %>
<%= edit_table_row HousePn.human_attribute_name(:house_pn_fund_id),( add_house_pn.house_pn_fund.descrizione ) %>
<%= edit_table_row HousePn.human_attribute_name(:data),( add_house_pn.data.present? ? add_house_pn.data.to_dmy : nil ) %>
<%= edit_table_row HousePn.human_attribute_name(:importo),( money_format(add_house_pn.importo) ) %>
<%= edit_table_row HousePn.human_attribute_name(:competenza),( daterange_name(add_house_pn.competenza) ) %>
<%= edit_table_row HousePn.human_attribute_name(:descrizione),( text_area_tag :descrizione, add_house_pn.descrizione, cols: 45, rows: 10, disabled: true) %>
<%= edit_table_row HousePn.human_attribute_name(:house_crb_id),( add_house_pn.house_crb_id.present? ? link_to( add_house_pn.house_crb.format_for_formselect, house_crb_path(add_house_pn.house_crb.id) ) : nil ) %>
<%= edit_table_close %>
<%= iconbutton_view add_house_pn %>
<%= iconbutton_edit edit_house_pn_path(add_house_pn, @filter_params), 'Modifica' %>
|