| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <div class='pdf-body'>
- <h3 style="margin-top:20px" class="text-center">Traspaso de <strong><%= origin %></strong> a <strong><%= destiny %></strong></h3>
- <div class="resume" style="border-bottom:1px solid black;">
- <h4 style="margin-top:5px;margin-bottom:5px">Información general</h4>
- <strong>Fecha:</strong>
- <%= l(transfer.transfer_date, :format => '%d/%m/%y') %><br>
- <strong>Capturó:</strong>
- <%= transfer.user.first_name %><br>
- <strong>Productos:</strong>
- <%= transfer.transfer_details.sum(:quantity) %><br>
- <strong>Status:</strong>
- <%= transfer_status(transfer) %>
- <% if transfer.received? %>
- <strong>Status de recepción:</strong>
- <%= reception_status %><br>
- <strong>Fecha de recepción:</strong>
- <%= l(transfer.reception_date, :format => '%d/%m/%y') %><br>
- <strong>Recibió:</strong>
- <%= transfer.received_by.first_name %>
- <% if transfer.observations.present? %>
- <br> <strong>Observaciones:</strong>
- <%= transfer.observations %>
- <% end %>
- <% end %>
- </div>
- <div class="products">
- <table cellspacing="0">
- <thead>
- <tr>
- <th style="text-align:left;font-weight:normal">Cant. Enviado</th>
- <th style="text-align:center;font-weight:normal">Cant. Recibido</th>
- <th style="text-align:right;font-weight:normal">Status recepción</th>
- </tr>
- </thead>
- <tbody style="border-top:1px solid black">
- <% transfer.transfer_details.each do |detail| %>
- <tr>
- <td colspan="3">
- <strong><%= truncate(detail.product.name.upcase, :length => 30, :separator => ' ', :omission => '') %> <%= truncate(detail.product.display_attributes_receipt.upcase, :length => 20, :separator => ' ', :omission => '') %></strong>
- </td>
- </tr>
- <tr>
- <td style="text-align:center">
- <%= detail.quantity.round %>
- </td>
- <td style="text-align:center">
- <%= detail.adjustment if transfer.received? %>
- </td>
- <td style="text-align:right">
- <% if detail.has_looses? %>
- CON PERDIDA
- <% elsif detail.has_surplus? %>
- CON EXCEDENTE
- <% end %>
- </td>
- </tr>
- <% end %>
- </tbody>
- </table>
- </div>
- </div>
|