Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <tr>
- <th>Ref.</th><th>DESCRIPCIÓN</th><th>CANT.</th><th>Vr. Unitario</th><th>Vr. Dcto. Unit.</th><th>Vr. Total</th>
- </tr>
- <% 18.times do |i| %>
- <tr>
- <% if i<@detalles_factura.size() %>
- <% puts 'i'+i.to_s%>
- <td><%= @detalles_factura[i].item_id ? @detalles_factura[i].item.codigo_corto : @detalles_factura[i].servicio.codigo_corto %></td>
- <td><%= @detalles_factura[i].item_id ? @detalles_factura[i].item.nombre : @detalles_factura[i].servicio.nombre %></td>
- <td><%= @detalles_factura[i].cantidad %></td>
- <td><%= @detalles_factura[i].precio_unitario %></td>
- <td><%= @detalles_factura[i].valor_descuento_en_linea %></td>
- <td><%= @detalles_facturas[i].cantidad*@detalles_facturas[i].precio_unitario - @detalles_facturas[i].valor_descuento_en_linea %></td>
- <% else %>
- <td colspan="6"> </td>
- <% end %>
- </tr>
- <% end %>
Add Comment
Please, Sign In to add comment