///////////////Creamos la imagen representativa de la pagina ///// ///// $css->CrearImageLink("ordenesdecompra.php", "../images/ordendecompra.png", "_self", 200, 200); ///////////////Si se crea una devolucion o una factura ///// ///// if (!empty($_REQUEST["TxtidOT"])) { $idOT = $_REQUEST["TxtidOT"]; if ($idOT != "") { $RutaPrint = "../tcpdf/examples/ImprimirOT.php?idOT=" . $idOT; $css->CrearTabla(); $css->CrearFilaNotificacion("Orden de Compra Creada Correctamente <a href='{$RutaPrint}' target='_blank'>Imprimir OT No. {$idOT}</a>", 16); $css->CerrarTabla(); } else { $css->AlertaJS("No se pudo crear la OC", 1, "", ""); } } ///////////////Se crea el DIV que servirá de contenedor secundario ///// ///// $css->CrearDiv("Secundario", "container", "center", 1, 1); //////////////////////////Se dibujan los campos de la cotizacion ///// ///// if (!empty($idOT)) { //print("<script>alert('entra')</script>"); $DatosOT = $obVenta->DevuelveValores("ordenesdecompra", "ID", $idOT); $idCliente = $DatosOT["Tercero"]; $DatosCliente = $obVenta->DevuelveValores("proveedores", "idProveedores", $idCliente); //Creamos el formulario para agregar items al formulario
///// ///// $css->CrearImageLink("FactCoti.php", "../images/cotizacion.png", "_self", 200, 200); ///////////////Si se crea una devolucion o una factura ///// ///// if (!empty($_REQUEST["TxtidFactura"])) { $idFactura = $_REQUEST["TxtidFactura"]; if ($idFactura != "") { $RutaPrint = "../tcpdf/examples/imprimirFactura.php?ImgPrintFactura=" . $idFactura; $DatosFactura = $obVenta->DevuelveValores("facturas", "idFacturas", $idFactura); $css->CrearTabla(); $css->CrearFilaNotificacion("Factura Creada Correctamente <a href='{$RutaPrint}' target='_blank'>Imprimir Factura No. {$DatosFactura['NumeroFactura']}</a>", 16); $css->CerrarTabla(); } else { $css->AlertaJS("No se pudo crear la factura porque no hay resoluciones disponibles", 1, "", ""); } } ///////////////Se crea el DIV que servirá de contenedor secundario ///// ///// $css->CrearDiv("Secundario", "container", "center", 1, 1); //////////////////////////Se dibujan los campos de la cotizacion ///// ///// if (!empty($idCotizacion)) { //print("<script>alert('entra')</script>"); $DatosCotizacion = $obVenta->DevuelveValores("cotizacionesv5", "ID", $idCotizacion); $idCliente = $DatosCotizacion["Clientes_idClientes"]; $DatosCliente = $obVenta->DevuelveValores("clientes", "idClientes", $idCliente); $css->CrearTabla();
} $css->CabeceraFin(); $NombreUser = $_SESSION['nombre']; $idUser = $_SESSION['idUser']; $obTabla = new Tabla($db); $obVenta = new ProcesoVenta(1); if (!empty($_REQUEST["TxtidFactura"])) { $idFactura = $_REQUEST["TxtidFactura"]; if ($idFactura != "") { $RutaPrint = "../tcpdf/examples/imprimirFactura.php?ImgPrintFactura=" . $idFactura; $DatosFactura = $obVenta->DevuelveValores("facturas", "idFacturas", $idFactura); $css->CrearTabla(); $css->CrearFilaNotificacion("Factura Creada Correctamente <a href='{$RutaPrint}' target='_blank'>Imprimir Factura No. {$DatosFactura['NumeroFactura']}</a>", 16); $css->CerrarTabla(); } else { $css->AlertaJS("No se pudo crear la factura porque no hay resoluciones disponibles", 1, "", ""); } } include_once "procesadores/procesaVentasRapidas.php"; /* * Creo el cuadro de dialogo que perimitirá crear un cliente */ include_once 'CuadroDialogoCrearCliente.php'; $Visible = 0; if ($idPreventa > 0) { $Visible = 1; } $css->CrearDiv("Principal", "container", "center", $Visible, 1); $css->CrearForm2("FrmCodBarras", $myPage, "post", "_self"); $css->CrearTabla(); $css->FilaTabla(16);