Simulazione 219 vecchio sistema federale
<%= view_table_head_open %> <%= view_table_row_open %> <%= view_table_head_cell ('Gruppo') %> <%= view_table_head_cell ('Nome della quota') %> <%= view_table_head_cell (raw('Numero
cittadini') ) %> <%= view_table_head_cell (raw('Numero
adulti') ) %> <%= view_table_head_cell (raw('Quota
adulti') ) %> <%= view_table_head_cell (raw('Numero
junior') ) %> <%= view_table_head_cell (raw('Quota
junior') ) %> <%= view_table_head_cell (raw('Importo
quota') ) %> <%= view_table_row_close %> <%= view_table_head_close %> <%= view_table_body_open %> <% fund_groups = RegionsHelper.get_qecstat_fundgroup_importi_for_region(current_competenza, current_region.id) %> <%# fund_groups_importo_individuale = fund_groups[:importo_individuale] %> <%# fund_groups_importo_regione = fund_groups[:importo_regione] %> <% fund_groups_details = fund_groups[:dettagli] %> <% RegionsHelper::FundGroups.each do |group| %> <% totale_importo = 0.0 %> <% totale_quota_adulto = 0.0 %> <% totale_quota_junior = 0.0 %> <% dettagli = fund_groups_details[group] %> <% dettagli.each do |dettaglio| %> <% totale_importo += dettaglio[:importo] %> <% totale_quota_adulto += dettaglio[:quota_adulto] %> <% totale_quota_junior += dettaglio[:quota_junior] %> <%= view_table_row_open %> <%= view_table_cell ( group ) %> <%= view_table_cell ( link_to(dettaglio[:fund_info][:srg_qec_fund].descrizione, srg_qec_fund_path(dettaglio[:fund_info][:srg_qec_fund].id) ) ) %> <%= view_table_cell_right ( dettaglio[:count_citizensA] ) %> <%= view_table_cell_right ( dettaglio[:count_adulti] ) %> <%= view_table_cell_right ( link_to(money_format(dettaglio[:quota_adulto]), organization_path(dettaglio[:fund_info][:organization].id) ) ) %> <%= view_table_cell_right ( dettaglio[:count_junior] ) %> <%= view_table_cell_right ( link_to(money_format(dettaglio[:quota_junior]), organization_path(dettaglio[:fund_info][:organization].id) ) ) %> <%= view_table_cell_right ( money_format(dettaglio[:importo]) ) %> <%= view_table_row_close %> <% end %> <%= view_table_row_open %> <%= view_table_cell_right ( nil ) %> <%= view_table_cell_span_right 3, ( 'totali:' ) %> <%= view_table_cell_right ( "#{money_format(totale_quota_adulto)}" ) %> <%= view_table_cell_right ( nil ) %> <%= view_table_cell_right ( "#{money_format(totale_quota_junior)}" ) %> <%= view_table_cell_right ( "#{money_format(totale_importo)}" ) %> <%= view_table_row_close %> <% end %> <%= view_table_body_close %> <%= view_table_close %>