<%= SrgPnTransaction.label %>

<%= form_tag(srg_pn_transactions_path, method: :get) do %> <%= view_table_open %> <%= view_table_row_open %> <%= render partial: "shared/filterdaterangestart", locals: { button_label: 'Inizio data incasso', pulsante_a_capo: false } %> <%= render partial: "shared/filterdaterangeend", locals: { button_label: 'Fine data incasso', pulsante_a_capo: false } %> <%= render "shared/filterdate" %> <% if !pundit_user.has_house_policyscope?(HousePn) %> <%= render "shared/filterhouse_id" %> <%= render "shared/filterhouseisentity" %> <%= render "shared/filterhouseregion_id" %> <% end %> <%= view_table_row_close %> <%= view_table_close %> <% end %> <%= page_entries_info @srg_pn_transactions %>, <%= select_per_page(params, session) %>
Totale per le <%= @srg_pn_transactions_notpaged.count %> voci filtrate: <%= money_format(@srg_pn_transactions_notpaged.sum(:importo)) %>
<%= will_paginate @srg_pn_transactions %> <%= view_table_open %> <%= view_table_head_open %> <%= view_table_row_open %> <%= view_table_head_cell_span 3 %> <%= view_table_head_cell (SrgPnTransaction.human_attribute_name(:data)) %> <%= view_table_head_cell (SrgPnTransaction.human_attribute_name(:competenza)) %> <%= view_table_head_cell (SrgPnTransaction.human_attribute_name(:importo)) %> <%= view_table_head_cell ( link_to(SrgPnTransaction.human_attribute_name(:house_id), houses_path ) ) %> <%= view_table_head_cell ( link_to(SrgPnTransaction.human_attribute_name(:region_id), houses_path ) ) %> <%= view_table_head_cell (SrgPnTransaction.human_attribute_name(:descrizione)) %> <%= view_table_head_cell ( link_to(SrgPnTransaction.human_attribute_name(:source_srg_pn_transaction_id), srg_pn_transactions_path ) ) %> <%= view_table_row_close %> <%= view_table_head_close %> <%= view_table_body_open %> <% @srg_pn_transactions.each do |srg_pn_transaction| %> <%= view_table_row_open "id='srg_pn_transaction_row_id#{srg_pn_transaction.id}'" %> <%= render partial:'form_row', locals: { srg_pn_transaction: srg_pn_transaction, details_show: false } %> <%= view_table_row_close %> <% end %> <%= view_table_body_close %> <%= view_table_close %> <%= will_paginate @srg_pn_transactions %>