| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <div class="row">
- <div class="col-md-12">
- <input type='hidden' name='filter' id='filter' value='<%= @filter %>' >
- <input type='hidden' name='current_page' id='current_page' value='<%= @current_page %>' >
- <table class="table table-striped table-bordered table-hover tableadvanced">
- <thead>
- <tr>
- <th>#</th>
- <th>Fecha</th>
- <th>Origen</th>
- <th>Destino</th>
- <th>Productos</th>
- <th>Status</th>
- <th>Status<br>recepción</th>
- <th>Acciones</th>
- </tr>
- </thead>
- <tbody>
- <% @transfers.each_with_index do |transfer, key| %>
- <tr>
- <td> <%= key + 1 %> </td>
- <td> <%= l(transfer.transfer_date, format: '%d/%B/%Y') %> </td>
- <td>
- <%= transfer.origin_is_pointsale? ? Pointsale.find(transfer.origin_id).name : Warehouse.find(transfer.origin_id).name %>
- </td>
- <td>
- <%= transfer.destiny_is_pointsale? ? Pointsale.find(transfer.destiny_id).name : Warehouse.find(transfer.destiny_id).name %>
- </td>
- <td> <%= transfer.transfer_details.count %> </td>
- <td class="text-center"><%= transfer_status(transfer) %></td>
- <td class="text-center"><%= transfer_details(transfer) %></td>
- <td class="text-center">
- <%= link_to transfer, { class: "btn btn-icon-only default filtros", title: "Ver traspaso" } do %>
- <i class="fa fa-search"></i>
- <% end %>
- <%= link_to print_transfer_receipt_path(transfer.id, format: 'pdf'), { class: "btn btn-icon-only default", target: "blank" } do %>
- <i class="fa fa-print"></i>
- <% end %>
- </td>
- </tr>
- <% end %>
- </tbody>
- </table>
- </div>
- </div>
|