| 123456789101112131415161718192021222324 |
- <tr id="pre_transfer_<%= pre_transfer.id %>">
- <td>#</td>
- <td class="text-center">
- <img src="<%= pre_transfer.product.small_img %>" width="100" height="100"/>
- </td>
- <td><%= pre_transfer.product.sku %></td>
- <td>
- <%= pre_transfer.product.name %><br>
- <%= pre_transfer.product.display_attributes %>
- </td>
- <td>
- <% if pre_transfer.origin_is_pointsale? %>
- <%= AvailableProduct.find_by(pointsale_id: pre_transfer.origin_id, product_id: pre_transfer.product_id).stock + pre_transfer.quantity %>
- <% else %>
- <%= WarehouseStock.find_by(warehouse_id: pre_transfer.origin_id, product_id: pre_transfer.product_id).stock + pre_transfer.quantity %>
- <% end %>
- </td>
- <td>
- <input type="number" min="1" id="quantity_<%= pre_transfer.id %>" class="form-control input-medium" id="quantity_<%= pre_transfer.id %>" value="<%= pre_transfer.quantity %>" oninput="updateQuantity($(this))" pattern="^[0-9]*[1-9][0-9]*$" title="La cantidad debe de ser mayor o igual a 1" required>
- </td>
- <td class="text-center">
- <button type="button" class="btn btn-icon-only btn-danger" onclick="deleteRow($(this))"><i class="fa fa-trash-o"></i></button>
- </td>
- </tr>
|