| 123456789101112131415161718192021222324252627282930313233 |
- <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><%= pre_sale.unit_price %></td>
- <td><%= pre_sale.tax %></td>
- <td><%= pre_sale.discount %></td>
- <td>
- <%= pre_sale.amount %>
- </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>
|