include "inc_session.php";
include "inc_seguridad.php";
include "inc_conectarse.php";
$_SESSION["modulo"] = "envios";
include "inc_functions.php";
?>
	
<?php 
// Agregar Region
if ($_POST["action"] == "Agregar") {
    $id = $_GET["id"];
    $comentarios = strtoupper($_POST["txtComentarios"]);
    $action_result = agregarComentarioRelacion($link, $id, $comentarios);
}
$factura = obtenerFactura($link, $_GET["id"]);
?>
	
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<?php 
include "inc_metadata.php";
?>
<body>
<!-- wrap starts here -->
<?php 
include "inc_header.php";
?>
	
<div id="wrap"> 
	<?php 
<?php

include "inc_session.php";
include "inc_seguridad.php";
include "inc_conectarse.php";
$_SESSION["modulo"] = "facturas";
include "inc_functions.php";
?>
	
<?php 
$id = $_GET["id"];
$factura = obtenerFactura($link, $id);
$cliente = obtenerCliente($link, $factura->id_cliente);
$total_flete_mercancia = $factura->total_mercancia * ($factura->flete / 100);
$total_flete_peso = $factura->total_peso * $factura->bskg;
$total_viaje = $factura->total_viaje;
$total_flete = $total_flete_mercancia + $total_flete_peso + $total_viaje;
$total_iva = $total_flete * ($factura->iva / 100);
$total_seguro = $factura->total_mercancia * ($factura->seguro / 100);
$variables = "page=" . $_GET["page"] . "&txtBusqueda=" . $_REQUEST["txtBusqueda"] . "&cmbEstatusFactura=" . $_REQUEST["cmbEstatusFactura"] . "&cmbAnoI=" . $_REQUEST["cmbAnoI"] . "&cmbMesI=" . $_REQUEST["cmbMesI"] . "&cmbDiaI=" . $_REQUEST["cmbDiaI"];
?>
	
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<?php 
include "inc_metadata.php";
?>
<body>
<!-- wrap starts here -->
<?php 
include "inc_header.php";
Exemple #3
0
function agregarComentarioRelacion($link, $id, $comentarios)
{
    $factura = obtenerFactura($link, $id);
    if ($factura->comentarios != "") {
        $comentarios = $factura->comentarios . "<br/>" . $comentarios;
    }
    $query = "UPDATE ts_factura \r\n\t\t             SET comentarios='" . $comentarios . "'\r\n\t\t           WHERE id=" . $id;
    mysql_query($query, $link);
    return "exitoAgregarComentario";
}