Ejemplo n.º 1
0
if (!isset($_SESSION['usu_id'])) {
    die("Usted no tiene acceso a esta area");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DETALLE COMPROBANTE</title>

<link href="../imagenes/logo.ico" type="image/x-icon" rel="shortcut icon">
<script src="../javascript/valida.js">  </script>
<link href="../estilos/css_sistema.css" rel="stylesheet" type="text/css" />
</head>
<?php 
$venta->ventas_ver($_REQUEST['codigo']);
if ($_REQUEST['id'] == '1') {
    /*if($venta->_ven_incluyeigv==0)
    	{
    		$precio = $_REQUEST['precio'] / 1.19;
    	}
    	
    	if($venta->_ven_incluyeigv==1)
    	{
    		$precio = $_REQUEST['precio'];
    	}*/
    $venta->detalleventa_insertar($_REQUEST['codigo'], $_REQUEST['descripcion'], $_REQUEST['cantidad'], $_REQUEST['precio']);
}
if ($_REQUEST['id'] == '2') {
    $venta->detalleventa_borrar($_POST['campos']);
}
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DETALLE VENTA</title>

<link href="../imagenes/logo.ico" type="image/x-icon" rel="shortcut icon">
<script src="../javascript/eventos.js"></script>
<link href="../estilos/css_sistema.css" rel="stylesheet" type="text/css" />
</head>
<?php 
if ($_REQUEST['id'] == '1') {
    $venta->detalleventa_insertar($_REQUEST['codigo'], $_REQUEST['descripcion'], $_REQUEST['cantidad'], $_REQUEST['precio']);
}
if ($_REQUEST['id'] == '2') {
    $venta->detalleventa_borrar($_POST['campos']);
}
$venta->ventas_ver($_REQUEST['venta']);
?>
<body>
<form id="form1" name="form1" >
  <table width="100%" border="0">
    <tr>
      <td colspan="3" bgcolor="#FFFFEC"><table width="100%" border="0">
        <tr>
          <td colspan="4"><?php 
echo $venta->_tipc_descripcion;
?>
 : <?php 
echo $venta->_util->ceros_izquierda($venta->_ven_serie_doc, 3);
?>
 - <?php 
echo $venta->_util->ceros_izquierda($venta->_ven_nro_doc, 5);