.qi_header %h1 Ventes %span =link_to "Offres",admin_p_customer_sheets_path .qi_row .qi_pannel.qi_plain.padding %table.table =render @p_sheet_line %hr %table.table %tr -@p_ship_tours.each do |p_ship_tour| %tr %th Date %th Camion %th Chauffeur %th Commandes prévues %th Quantité déjà prévue %th %td{:rowspan => (p_ship_tour.p_ship_tour_trucks.count + 1), :style => "vertical-align:middle;text-align:center;"} =raw p_ship_tour.state_html %br = link_to i(:eye), admin_p_ship_tour_path(p_ship_tour) -p_ship_tour.p_ship_tour_trucks.each do |p_ship_tour_truck| %tr %td= l p_ship_tour.start_at, :format => :date if p_ship_tour.start_at %td =p_ship_tour_truck.p_truck.name %td -if p_ship_tour_truck.p_driver %strong =p_ship_tour_truck.p_driver.name %td =p_ship_tour_truck.p_sheet_lines.count %td =p_ship_tour_truck.p_sheet_lines.sum(:qte) %td =link_to "Ajouter à ce camion", urg_ship_admin_p_ship_tour_truck_path(:id => p_ship_tour_truck.id, :p_sheet_line_id => @p_sheet_line.id, :p_customer_sheet_id => @p_customer_sheet.id)