										<% if !@sales.nil? %>
										<div class="row">
											<div class="col-md-12">
												<div class="col-md-6 col-sm-3 col-xs-6 " >
													<div class="text-center well" id="container_total_prods" style="margin-bottom: 0px">
														<div class="font-grey-mint font-sm">Cantidad vendida</div>
														<div class="uppercase font-hg font-blue-sharp" id="total_prods"> <%= @sales.sum(:quantity) %></div>
													</div>
												</div>
												<div class="col-md-6 col-sm-3 col-xs-6 " >
													<div class="text-center well" id="container_total_prods" style="margin-bottom: 0px">
														<div class="font-grey-mint font-sm">Total de ingresos </div>
														<div class="uppercase font-hg font-blue-sharp" id="total_prods"> <%= number_to_currency(@sales.sum(:total) , precision: 2) %></div>
													</div>
												</div>
											</div>
										</div>
										<br>
										<% end %>
										<div class="row">
											<div class="col-md-12">
												<table class="table table-striped table-bordered table-hover tableadvanced"  >
													<thead>
														<tr>
															<th>Folio Venta</th>
															<th>Fecha</th>
															<th>Punto de venta</th>
															<th>Vendido por </th>
															<th>Cantidad</th>
															<th>Precio</th>
															<th>Descto.</th>
															<th>Importe</th>
														</tr>
													</thead>
													<tbody>
													<% if !@sales.nil? %>
													<% @sales.each_with_index do |sale, key| %>
														<tr>
															<td><%= l(sale.sale.date_sale, :format => '%d/%m/%Y') %></td>
															<td><%= sale.sale.sale_code %> </td>
															<td><%= sale.sale.get_pointsale.name %></td>
															<td><%= sale.sale.seller.name %> </td>
															<td><%= sale.quantity %> </td>
															<td><%= number_to_currency(sale.amount, precision: 2) %></td>
															<td><%= number_to_currency(sale.discount, precision: 2) %></td>
															<td><%= number_to_currency(sale.total, precision: 2) %></td>
														</tr>
													<% end %>
													<% end %>
													</tbody>
												</table>
											</div>
										</div>
