Guest User

Untitled

a guest
May 24th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <tr>
  2. <th>Ref.</th><th>DESCRIPCI&Oacute;N</th><th>CANT.</th><th>Vr. Unitario</th><th>Vr. Dcto. Unit.</th><th>Vr. Total</th>
  3. </tr>
  4. <% 18.times do |i| %>
  5. <tr>
  6. <% if i<@detalles_factura.size() %>
  7. <% puts 'i'+i.to_s%>
  8. <td><%= @detalles_factura[i].item_id ? @detalles_factura[i].item.codigo_corto : @detalles_factura[i].servicio.codigo_corto %></td>
  9. <td><%= @detalles_factura[i].item_id ? @detalles_factura[i].item.nombre : @detalles_factura[i].servicio.nombre %></td>
  10. <td><%= @detalles_factura[i].cantidad %></td>
  11. <td><%= @detalles_factura[i].precio_unitario %></td>
  12. <td><%= @detalles_factura[i].valor_descuento_en_linea %></td>
  13. <td><%= @detalles_facturas[i].cantidad*@detalles_facturas[i].precio_unitario - @detalles_facturas[i].valor_descuento_en_linea %></td>
  14. <% else %>
  15. <td colspan="6">&nbsp;</td>
  16. <% end %>
  17. </tr>
  18. <% end %>
Add Comment
Please, Sign In to add comment