<tr id="pre_sale_<%= pre_sale.id %>">
  <td> # <%= hidden_field_tag 'include_tax', pre_sale.product.include_sale_tax %> </td>
  <td><%= pre_sale.product.sku %></td>
  <td class="text-center"><img src="<%= pre_sale.product.small_img %>" width="100" height="100"/></td>
  <td>
    <%= pre_sale.product.name %><br>
    <%= pre_sale.product.display_attributes %>
  </td>
  <td>
    <input type="number" min="1" id="quantity_<%= pre_sale.id %>" class="form-control input-xsmall" id="quantity_<%= pre_sale.id %>" oninput="calculatePrice($(this))" value="<%= pre_sale.quantity %>" pattern="^[0-9]*[1-9][0-9]*$" title="La cantidad debe de ser mayor o igual a 1" required>
  </td>
  <td>
    <label><%= number_to_currency(pre_sale.unit_price, precision: 2) %></label>
    <%= hidden_field_tag('unit_price', pre_sale.unit_price, { id: "unit_price_" + pre_sale.id.to_s }) %>
  </td>
  <td class="hidden">
    <label><%= number_to_currency(pre_sale.tax, precision: 2) %></label>
    <%= hidden_field_tag('tax', pre_sale.tax, { id: "tax_" + pre_sale.id.to_s }) %>
  </td>
  <td>
    <label><%= number_to_currency(pre_sale.discount, precision: 2) %></label>
    <%= hidden_field_tag('discount', pre_sale.discount, { id: "discount_" + pre_sale.id.to_s }) %>
  </td>
  <td>
    <label><%= number_to_currency(pre_sale.total, precision: 2) %></label>
    <%= hidden_field_tag('total', pre_sale.total, { id: "total_" + pre_sale.id.to_s }) %>
  </td>
  <td style="width:5%">
    <% if @pos_config.enable_haggle? && pre_sale.haggle.zero? && pre_sale.haggle_percent.zero? %>
      <%= link_to add_sale_haggle_path(pre_sale), :remote => true, :class => "btn btn-icon-only btn-primary hagglebutton", :title=>"Agregar regate" do %>
        <i class="fa fa-tag"></i>
      <% end %>
    <% else %>
      <%= pre_sale_haggle_type(pre_sale) %>
    <% end %>
    <button type="button" class="btn btn-icon-only btn-danger" onclick="deleteRow($(this))"><i class="fa fa-trash-o"></i></button>
  </td>
</tr>
