Advertisement
MX37S

grillaFacturas.jsp

Jan 21st, 2022
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         function recuperarFactByToken(token) {
  2.             var protocol = location.protocol;  
  3.             var host = location.host;
  4.             var contextPath='<%=request.getContextPath()%>';
  5.  
  6.             //var path = protocol + "//" + host + contextPath + "/getPDF/" + token + ".html";
  7.            
  8.             let docActual = (""+document.getElementById(token).cells[0].title).split("-");//'FA-440-A-1367092'
  9.             let sucursal = docActual[1];
  10.             let numero =  docActual[3];
  11.  
  12.             alert(docActual);
  13.  
  14.  
  15.             let newUrl = "http://test.realsoftware.com.ar/rs_fe/wko/rece_caea/"+
  16.             "impresion_remota.php?account=30696170580&tipocomprobante=1&sucursal=440"+
  17.             "&numero=1535589&clave=13d34270b84aa5331cc7279dbc3cc786";
  18.  
  19.             let newUrl2 = "http://test.realsoftware.com.ar/rs_fe/wko/rece_caea/"+
  20.             "impresion_remota.php?account=30696170580&tipocomprobante=1&sucursal="+sucursal+
  21.             "&numero="+numero+"&clave=13d34270b84aa5331cc7279dbc3cc786";
  22.  
  23.             window.open(newUrl);
  24.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement