Muchas gracias por el consejo!
Intentaré hacerlo así a ver si funciona..la cosa es esta:
Código Javascript
:
Ver originalif (<%= variables.get("sT1") %> != 0){
document.write ('<tr><td class="negritaIzquierda" colspan="4">Componente 1<\/td><\/tr>');
if (<%= Double.parseDouble(variables.get("cantidad1_1").toString())%> != 0 ) {
document.write ('<tr><td> Componente 1a<\/td>');
document.write ('<td>' + <%= variables.get("cantidad1_1") %> + '<\/td>');
document.write ('<td>' +<%= variables.get("prec1_1") %> + ' €<\/td>');
document.write ('<td>');
document.write (redondear(<%= variables.get("cantidad1_1") %>*<%= variables.get("prec1_1") %>) + ' €');
document.write ('<\/td><\/tr>');
}
if (<%= Double.parseDouble(variables.get("cantidad1_2").toString())%> != 0 ) {
document.write ('<tr><td> Componente 1b<\/td>');
}
}
La cosa es que solo me saca el componente 1a, una sóla fila y no entiendo el por qué...
Gracias!!