| 1234567891011121314151617181920212223242526272829 |
- <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" 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><%= pre_sale.unit_price %></td>
- <td><%= pre_sale.tax %></td>
- <td><%= pre_sale.discount %></td>
- <td><%= pre_sale.total %></td>
- <td style="width:5%">
- <% if @pos_config.enable_haggle? && pre_sale.haggle == 0 %>
- <%= 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 %>
- <% end %>
- <button type="button" class="btn btn-icon-only btn-danger" onclick="deleteRow($(this))"><i class="fa fa-trash-o"></i></button>
- </td>
- </tr>
|