PK

ADDRLIN : /HMFS2/WEB/DTC038/v0071350.ferozo.com/public_html/administrador/
FLL :
Current File : //HMFS2/WEB/DTC038/v0071350.ferozo.com/public_html/administrador/pedido_print.asp

<!--#include file="includes/openconn.asp" -->

<!--#include file="includes/checkadmin.asp" -->

<!DOCTYPE html>
<html lang="es">
<style>
body {
	font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 13px;
	color: #000000;
}
</style>

<body>
<%rs.open "SELECT * FROM Q_Pedidos WHERE idpedido = " & request("idpedido"),conn,3,1
				  if rs.EOF then%>
Pedido ELIMINADO<br>
Este pedido ya no figura en base de datos
<%else
                  rs.movefirst
				  
				  session("idpedido") = rs("idpedido")%>
<b>ID pedido :</b> PED00<%=rs("idpedido")%><br>
<b>Fecha / hora :</b> <%=rs("ped_now")%><br>
<b>IP :</b> <%=rs("ped_IP")%><br>
<hr>
Nombre : <%=rs("ped_nombre")%><br>
TEL : <%=rs("ped_telefono")%><br>
EMAIL : <%=rs("ped_email")%><br>
Direcci&oacute;n : <b><%=rs("ped_provincia")%> - <%=rs("ped_localidad")%> - <%=rs("ped_domicilio")%> - <%=rs("ped_cp")%></b><br>

<hr>
<%dim xtotal,xcantidad, xcodigo
			  
			  xcantidad = 0
			  xcodigo = 0
			  xtotal = 0
			  
			  rs1.open "SELECT * FROM Q_Pedidos_items WHERE xidpedido = " & rs("idpedido") & " ORDER BY item_nombre",conn,3,1
			if not rs1.eof then
				rs1.movefirst%>
<table cellpadding="4" cellspacing="1" style="border:solid 1px #CCCCCC;">
  <thead>
    <tr style="background-color:#EEEEEE;">
      <th width="60">Cajas</th>
      <th width="60">Unid</th>
      <th width="60">ID</th>
      <th>Articulo</th>
      <th>P/unit</th>
      <th>Subt</th>
    </tr>
  </thead>
  <tbody>
    <%a=0
				do until rs1.eof%>
    <tr>
      <td align="center"><% if rs1("art_unidadespc") > 0  then%>
        <%if Int (rs1("item_cantidad")/rs1("art_unidadespc")) > 0 then%>
        <%=Int (rs1("item_cantidad")/rs1("art_unidadespc"))%> (x<%=rs1("art_unidadespc")%>)
        <%end if%>
        <%end if%></td>
      <td align="center"><% if rs1("art_unidadespc") > 0 then%>
        <%if rs1("item_cantidad")-(Int (rs1("item_cantidad")/rs1("art_unidadespc"))*rs1("art_unidadespc")) > 0 then%>
        <%=rs1("item_cantidad")-(Int (rs1("item_cantidad")/rs1("art_unidadespc"))*rs1("art_unidadespc"))%>
        <%end if%>
        <%else%>
        <%if rs1("item_cantidad") > 0 then%>
        <%=rs1("item_cantidad")%>
        <%end if%>
        <%end if%></td>
      <td align="center"><%=rs1("idarticulo")%></td>
      <td align="left"><%=rs1("item_nombre")%> - <%=rs1("art_presentacion")%></td>
      <td align="right">$ <%=formatnumber(rs1("item_precio"),2)%>&nbsp;</td>
      <td align="right">$ <%=formatnumber(rs1("item_precio")*rs1("item_cantidad"),2)%>&nbsp;</td>
    </tr>
    <%xtotal = xtotal + (rs1("item_precio") * rs1("item_cantidad"))
                    xcantidad = xcantidad + rs1("item_cantidad")
					rs1.movenext
				loop%>
    <%if rs("ped_costoenvio") > 0 then%>
    <tr>
      <td class="destacado">&nbsp;</td>
      <td class="destacado">&nbsp;</td>
      <td align="right" class="destacado"></td>
      <td align="left">Costo de envio</td>
      <td align="right" class="destacado"></td>
      <td align="right" class="destacado"><b>$ <%=formatnumber(rs("ped_costoenvio") ,2)%></b></td>
    </tr>
    <%xtotal = xtotal + rs("ped_costoenvio")
				  end if %>
  </tbody>
  <tr  style="background-color:#EEEEEE;">
    <td ></td>
    <td align="center" ><b><%=xcantidad%></b></td>
    <td ></td>
    <td ></td>
    <td align="right" class="destacado">TOTAL  = </td>
    <td align="right" class="destacado"><b>$ <%=formatnumber(xtotal,2)%></b></td>
  </tr>
</table>
<%else%>
<table cellpadding="0" cellspacing="0" class="datos">
  <tr>
    <td><font color="#003968">No  hay items</font></td>
  </tr>
</table>
<%end if
				rs1.close%>
                <%if not ISNULL(rs("ped_Comentario")) then%>
                <hr>
 
                COMENTARIOS :<br>
                <%=replace(rs("ped_Comentario"),chr(13),"<br>")%>
                <%end if%>
                
<%end if
				rs.close%>
                
                
</body>
</html>

<!--#include file="includes/closeconn.asp" -->


PK 99