Ejemplo n.º 1
0
  <tr>
    <td align="right" valign="top" class="color_celda">Observaciones</td>
    <td align="center" valign="top" class="color_celda">:</td>
    <td colspan="4"><textarea name="observaciones" cols="65" rows="6" id="observaciones" onkeyup='fn(this.form,this)'><?php 
echo $_REQUEST['observaciones'];
?>
</textarea></td>
  </tr>
  <tr>
    <td align="right" class="color_celda">Subtotal (S/.) </td>
    <td align="center" valign="top" class="color_celda">:</td>
	 <td colspan="4" bgcolor="#FFFFFF"><?php 
$primer_kg = $_REQUEST['primerkg'];
if ($_REQUEST['igv_incluye'] == '0') {
    $costo_subtotal = $totalcostovolumen + $primer_kg * $_REQUEST['cantidad'] + $kg_adicional + $_REQUEST['costoservicio'] + $precioembalaje + $preciofragilidad;
    $valor_igv = $costo_subtotal * $auxiliares->devuelve_igv();
    $costo_total = $costo_subtotal + $valor_igv;
}
if ($_REQUEST['igv_incluye'] == '1') {
    $costo_total = $totalcostovolumen + $primer_kg * $_REQUEST['cantidad'] + $kg_adicional + $_REQUEST['costoservicio'] + $precioembalaje + $preciofragilidad;
    $costo_subtotal = $costo_total / (1 + $auxiliares->devuelve_igv());
    $valor_igv = $costo_total - $costo_subtotal;
}
?>
	 <input name="subtotal" type="text" id="subtotal" value="<?php 
echo number_format($costo_subtotal, 2);
?>
" size="15" onkeyup='fn(this.form,this)' /> 
    (Volum. +  1er Kg + Kg Adic. +  Servic. +  Emb. + Frag.) </td>
  </tr>
  <tr>
Ejemplo n.º 2
0
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>MANTENIMIENTO</title>
<link href="../estilos/css_sistema.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php 
if (isset($_REQUEST['igv_id'])) {
    $_SESSION['igv_codigo'] = $_REQUEST['igv_id'];
}
if ($_REQUEST['id'] === '1') {
    $igv->igv_editar($_SESSION['igv_codigo'], $_REQUEST['igv']);
}
$igv->devuelve_igv('1');
?>


<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><?php 
include "menu.php";
?>
</td>
  </tr>
  <tr>
    <td align="center">
  </td>
  </tr>
  <tr>
 if ($cargo->util->obtienefecha($campo['carcou_fecha']) != '00/00/0000') {
     $fecha = $cargo->util->obtienefecha($campo['carcou_fecha']);
 } else {
     $fecha = '';
 }
 $incluye_igv = $campo['carcou_incluyeigv'];
 /*	*/
 if ($incluye_igv == '1') {
     $primerkg = $campo['carcou_costoprimerkg'];
     $kgadicional = $campo['carcou_costokgadicional'];
     $volumen = $campo['carcou_costovolumen'];
     $fragilidad = $campo['carcou_costofragilidad'];
     $embalaje = $campo['carcou_costoembalaje'];
     $costo_servicio = $campo['carcou_costoservicio'];
 } else {
     $campo_igv = 1 + $auxiliares->devuelve_igv();
     $primerkg = number_format($campo['carcou_costoprimerkg'] * ($campo_igv + 1), 2);
     $kgadicional = number_format($campo['carcou_costokgadicional'] * ($campo_igv + 1), 2);
     $volumen = number_format($campo['carcou_costovolumen'] * ($campo_igv + 1), 2);
     $fragilidad = number_format($campo['carcou_costofragilidad'] * ($campo_igv + 1), 2);
     $embalaje = number_format($campo['carcou_costoembalaje'] * ($campo_igv + 1), 2);
     $costo_servicio = number_format($campo['carcou_costoservicio'] / ($campo_igv + 1), 2);
 }
 /**/
 $subtotal = $campo['carcou_subtotal'];
 $igv = $campo['carcou_igv'];
 $total = $campo['carcou_total'];
 $guia = $campo['carcou_id'];
 $zona = $campo['zon_descripcion'];
 $ciudad = $auxiliares->devuelve_ciudad($campo['ciu_id']);
 $tipoenvio = $campo['carcou_cantidad'] . ' ' . $campo['tipoenv_descripcion'];
Ejemplo n.º 4
0
            $volumen = number_format($campo['carcou_costovolumen'] / 1.19, 2);
            $fragilidad = number_format($campo['carcou_costofragilidad'] / 1.19, 2);
            $embalaje = number_format($campo['carcou_costoembalaje'] / 1.19, 2);
            $costo_servicio = number_format($campo['carcou_costoservicio'] / 1.19, 2);
        }
        $subtotal = $campo['carcou_subtotal'];
        $igv = $campo['carcou_igv'];
        $total = $campo['carcou_total'];
        $guia = $campo['carcou_id'];
        $zona = $campo['zon_descripcion'];
        $ciudad = $auxiliares->devuelve_ciudad($campo['ciu_id']);
        $tipoenvio = $campo['carcou_cantidad'] . ' ' . $campo['tipoenv_descripcion'];
        $peso = $campo['carcou_peso'] . ' Kg';
        $pdf->Row(array($j, $fecha, $zona, $ciudad, $guia, $tipoenvio, $peso, 'S/. ' . $primerkg, 'S/. ' . $kgadicional, 'S/. ' . $volumen, 'S/. ' . $costo_servicio, 'S/. ' . $fragilidad, 'S/. ' . $embalaje, 'S/. ' . $subtotal));
        $suma_subtotal = $suma_subtotal + $subtotal;
        //$suma_igv=$suma_igv + $igv;
        //$suma_total=$suma_total + $total;
        $j = $j + 1;
    }
}
$pdf->Row(array('', '', '', '', '', '', '', '', '', '', '', '', 'Subtotal', 'S/. ' . number_format($suma_subtotal, 2)));
$igv = $suma_subtotal * $auxiliares->devuelve_igv();
$total = $igv + $suma_subtotal;
$pdf->Row(array('', '', '', '', '', '', '', '', '', '', '', '', 'IGV', 'S/. ' . number_format($igv, 2)));
$pdf->Row(array('', '', '', '', '', '', '', '', '', '', '', '', 'Total', 'S/. ' . number_format($total, 2)));
$cargo->con->cerrar();
//$pdf->WriteHTML($htmlTable);
$pdf->Output();
?>

Ejemplo n.º 5
0
  <tr>
    <td align="right" valign="top" class="color_celda">Observaciones</td>
    <td align="center" valign="top" class="color_celda">:</td>
    <td colspan="4"><textarea name="observaciones" cols="65" rows="6" id="observaciones" onkeyup='fn(this.form,this)'><?php 
echo $_REQUEST['observaciones'];
?>
</textarea></td>
  </tr>
  <tr>
    <td align="right" class="color_celda">Subtotal (S/.) </td>
    <td align="center" valign="top" class="color_celda">:</td>
	 <td colspan="4" bgcolor="#FFFFFF"><?php 
$primer_kg = $_REQUEST['primerkg'];
if ($_REQUEST['igv_incluye'] == '0') {
    $costo_subtotal = $totalcostovolumen + $primer_kg * $_REQUEST['cantidad'] + $kg_adicional + $_REQUEST['costoservicio'] + $precioembalaje + $preciofragilidad;
    $valor_igv = $costo_subtotal * $auxiliares->devuelve_igv();
    $costo_total = $costo_subtotal + $valor_igv;
}
if ($_REQUEST['igv_incluye'] == '1') {
    $costo_total = $totalcostovolumen + $primer_kg * $_REQUEST['cantidad'] + $kg_adicional + $_REQUEST['costoservicio'] + $precioembalaje + $preciofragilidad;
    $costo_subtotal = $costo_total / 1.19;
    $valor_igv = $costo_total - $costo_subtotal;
}
?>
	 <input name="subtotal" type="text" id="subtotal" value="<?php 
echo number_format($costo_subtotal, 2);
?>
" size="15" onkeyup='fn(this.form,this)' /> 
    (Volum. +  1er Kg + Kg Adic. +  Servic. +  Emb. + Frag.) </td>
  </tr>
  <tr>