///////Dibujo opciones forma de pago print "<td>"; $css->CrearSelect("TipoPago", " Tipo de Pago:<br>", "black", "", 1); $css->CrearOptionSelect("Contado", "Contado", 0); $css->CrearOptionSelect("Programado", "Programado", 0); $css->CerrarSelect(); print "</td>"; ///// Text Fecha Programada print "<td>"; $css->CrearInputText("TxtFechaProgram", "text", 'Fecha Programada:<br>', $fecha, "Fecha Factura", "black", "", "", 150, 30, 0, 1); print "</td>"; $css->CierraFilaTabla(); ///////Dibujo Tipos de Cajas de acuerdo al egreso $css->FilaTabla(14); print "<td>"; $css->CrearTextArea("TxtConcepto", "Concepto del Egreso:<br>", "", "Escriba el motivo del Egreso", "black", "", "", 300, 100, 0, 1); print "</td>"; print "<td>"; $css->CrearInputText("TxtNumFactura", "text", 'Numero de Factura:<br>', "", "Numero de Factura", "black", "", "", 300, 30, 0, 1); print '<input type="file" name="foto" id="foto"></input>'; print "</td>"; print "<td>"; $css->CrearInputText("TxtSubtotal", "number", 'Subtotal: <br>', "", "SubTotal", "black", "onkeyup", "CalculeTotal()", 150, 30, 0, 1); print "<br>"; $css->CrearInputText("TxtIVA", "number", 'IVA:<br>', "0", "IVA", "IVA", "onkeyup", "CalculeTotal()", 150, 30, 0, 1); $css->CrearSelect("CmbIVADes", "", "black", "", 1); $css->CrearOptionSelect(2408, "Descontable", 1); $css->CrearOptionSelect(521570, "No Descontable", 0); $css->CerrarSelect(); print "<br>"; $css->CrearInputText("TxtTotal", "number", 'Total:<br>', "", "Total", "black", "", "", 150, 30, 1, 1);
print "<td>"; $VarSelect["Ancho"] = "200"; $VarSelect["PlaceHolder"] = "Seleccione el Cliente"; $css->CrearSelectChosen("TxtTercero", $VarSelect); $sql = "SELECT * FROM clientes"; $Consulta = $obVenta->Query($sql); while ($DatosProveedores = $obVenta->FetchArray($Consulta)) { $Sel = 0; $css->CrearOptionSelect($DatosProveedores["idClientes"], "{$DatosProveedores['RazonSocial']} {$DatosProveedores['Num_Identificacion']}", $Sel); } $css->CerrarSelect(); print "</td>"; $css->CierraFilaTabla(); $css->FilaTabla(14); print "<td colspan='2' style='text-align:center'>"; $css->CrearTextArea("TxtConcepto", "Concepto:<br>", "", "Concepto", "black", "", "", 200, 80, 0, 1); print "</td>"; print "<td colspan='2' style='text-align:center'>"; $css->CrearInputNumber("TxtTotal", "Number", "Total:<br>", "", "Total", "Black", "", "", 120, 30, 0, 1, 1, "", 1); print "<br>"; $css->CrearBotonConfirmado("BtnGuardarAnticipo", "Guardar"); print "</td>"; $css->CierraFilaTabla(); $css->CerrarTabla(); $css->CerrarForm(); $css->CerrarDiv(); //Cerramos contenedor Secundario $css->CerrarDiv(); //Cerramos contenedor Principal $css->AgregaJS(); //Agregamos javascripts
while ($DatosCuentasFrecuentes = mysql_fetch_array($Consulta)) { $css->CrearOptionSelect($DatosCuentasFrecuentes["CuentaPUC"], $DatosCuentasFrecuentes["Nombre"], 0); } } else { print "<script>alert('No hay cuentas frecuentes creadas debe crear al menos una')</script>"; } $css->CerrarSelect(); print "<br>Fecha de la Factura: <br>"; $css->CrearInputText("TxtFechaFactura", "text", "", date("Y-m-d"), "FechaFactura", "black", "", "", 130, 30, 0, 1); print "<br>"; $css->CrearInputText("TxtNumeroFactura", "number", "", 0, "", "black", "", "", 130, 30, 0, 1, 0, $DatosResolucion["Hasta"]); print "<br>"; $css->CrearInputText("TxtOrdenCompra", "text", "", "", "Orden de Compra", "black", "", "", 150, 30, 0, 0); $css->CrearInputText("TxtOrdenSalida", "text", "", "", "Orden de Salida", "black", "", "", 150, 30, 0, 0); print "<br>"; $css->CrearTextArea("TxtObservacionesFactura", "", "", "Observaciones para esta Factura", "black", "", "", 300, 100, 0, 0); print "<br>"; $css->CrearBotonConfirmado("BtnGenerarFactura", "Guardar"); print "</td>"; $css->CierraFilaTabla(); $css->CerrarTabla(); $css->CerrarForm(); } } else { $css->CrearTabla(); $css->CrearFilaNotificacion("Por favor busque y asocie una cotizacion", 16); $css->CerrarTabla(); } $css->CerrarDiv(); //Cerramos contenedor Secundario $css->CerrarDiv();
} /////////////////Cuadro de dialogo de Clientes create $css->CrearCuadroDeDialogo("CrearComprobante", "Crear un Comprobante"); $css->CrearForm2("FrmCreaPreMovimiento", $myPage, "post", "_self"); $css->CrearTabla(); $css->FilaTabla(16); $css->ColTabla("<strong>Fecha</strong>", 1); $css->ColTabla("<strong>Detalle</strong>", 1); $css->ColTabla("<strong>Crear</strong>", 1); $css->CierraFilaTabla(); $css->FilaTabla(16); print "<td>"; $css->CrearInputText("TxtFecha", "date", "", date("Y-m-d"), "Fecha", "black", "", "", 100, 30, 0, 1); print "</td>"; print "<td>"; $css->CrearTextArea("TxtConceptoComprobante", "", "", "Escriba el detalle", "black", "", "", 300, 100, 0, 1); print "</td>"; print "<td>"; $css->CrearBotonConfirmado("BtnCrearComC", "Crear"); print "</td>"; $css->CierraFilaTabla(); $css->CerrarTabla(); $css->CerrarForm(); $css->CerrarCuadroDeDialogo(); //print($statement); ///////////////Creamos la imagen representativa de la pagina ///// ///// //$css->CrearImageLink("../VMenu/Menu.php", "../images/cuentasxpagar.jpg", "_self",200,200); //print("<br><br><br>"); $css->CrearForm2("FrmSeleccionaCom", $myPage, "post", "_self");
$css->CierraFilaTabla(); $css->FilaTabla(16); $css->ColTabla('NIT:', 1); $css->ColTabla($DatosCliente["Num_Identificacion"], 1); $css->ColTabla(' ', 1); $css->ColTabla('FECHA Y HORA:', 1); $Fecha = date("Y-m-d"); $Hora = date("H:i:s"); print "<td>"; $css->CrearInputText("TxtFecha", "text", "", $Fecha, "Fecha y Hora", "black", "", "", 150, 30, 0, 1); $css->CrearInputText("TxtHora", "text", "", $Hora, "Fecha y Hora", "black", "", "", 150, 30, 0, 1); print "</td>"; $css->CierraFilaTabla(); $css->FilaTabla(16); print "<td colspan=5 style='text-align: center'>"; $css->CrearTextArea("TxtObservacionesRemision", "", "", "Observaciones", "black", "", "", 500, 150, 0, 0); print "</td>"; $css->CierraFilaTabla(); $css->CerrarTabla(); $css->CrearTabla(); $Consulta = $obVenta->ConsultarTabla("cot_itemscotizaciones", "WHERE NumCotizacion={$idCotizacion}"); $css->FilaTabla(16); $css->ColTabla('REFERENCIA', 1); $css->ColTabla('DESCRIPCION', 1); $css->ColTabla('CANTIDAD', 1); $css->ColTabla('MULTIPLICADOR', 1); $css->ColTabla('VALOR', 1); $css->CierraFilaTabla(); $Total = 0; $Subtotal = 0; $IVA = 0;
$css->CierraFilaTabla(); $css->FilaTabla(14); $css->ColTabla($DatosCliente["RazonSocial"], 1); $css->ColTabla($DatosFactura["Prefijo"] . $DatosFactura["NumeroFactura"], 1); $css->ColTabla($DatosFactura["Fecha"], 1); $css->ColTabla($DatosFactura["Total"], 1); $css->CierraFilaTabla(); $css->CerrarTabla(); $css->CrearForm2("FrmRegistraAnulacion", $myPage, "post", "_self"); $css->CrearInputText("TxtIdFactura", "hidden", "", $DatosFactura["idFacturas"], "", "", "", "", "", "", "", ""); $css->CrearTabla(); $css->CrearNotificacionNaranja("Datos Para Realizar la Anulacion", 16); print "<td style='text-align:center'>"; $css->CrearInputText("TxtFechaAnulacion", "text", "Fecha de Anulacion: <br>", date("Y-m-d"), "Fecha", "black", "", "", 100, 30, 0, 1); print "<br>"; $css->CrearTextArea("TxtConceptoAnulacion", "", "", "Escriba el por qué se anulará la factura", "black", "", "", 200, 100, 0, 1); print "<br>"; $css->CrearBotonConfirmado("BtnAnular", "Anular"); print "</td>"; $css->CerrarTabla(); $css->CerrarForm(); } else { $css->CrearTabla(); $css->CrearFilaNotificacion("Por favor busque y asocie una factura", 16); $css->CerrarTabla(); } $css->CerrarDiv(); //Cerramos contenedor Secundario $css->CerrarDiv(); //Cerramos contenedor Principal $css->AgregaJS();
$css->ColTabla("SUBTOTAL:", 1); $css->ColTabla(number_format($Subtotal), 3); $css->CierraFilaTabla(); $css->FilaTabla(18); $css->ColTabla("IMPUESTOS:", 1); $css->ColTabla(number_format($IVA), 3); $css->CierraFilaTabla(); $css->FilaTabla(18); $css->ColTabla("TOTAL:", 1); $css->ColTabla(number_format($Total), 3); $css->FilaTabla(18); print "<td colspan=4>"; $css->CrearInputText("TxtNumOrden", "text", "", "", "Numero de Orden", "black", "", "", 150, 30, 0, 0); $css->CrearInputText("TxtNumSolicitud", "text", "", "", "Numero de Solicitud", "black", "", "", 150, 30, 0, 0); print "<br>"; $css->CrearTextArea("TxtObservaciones", "", "", "Observaciones para esta Cotizaciones", "black", "", "", 300, 100, 0, 0); print "<br>"; $css->CrearBotonConfirmado("BtnGuardar", "Guardar"); print "</td>"; $css->CierraFilaTabla(); $css->CerrarTabla(); $css->CerrarForm(); } else { print '<tr><div class="alert alert-success" align="center"><strong>Por favor Seleccione un Cliente</strong></div></tr>'; } ?> </tr>
//// $TotalDevolucion = $obVenta->Sume("rem_pre_devoluciones", "Total", "WHERE idRemision='{$idRemision}'"); $css->CrearFormularioEvento("FormGuardaDevolucion", $myPage, "post", "_self", ""); $css->CrearInputText("TxtIdRemision", "hidden", "", $idRemision, "", "black", "", "", 150, 30, 0, 0); $css->CrearInputText("TxtTotalDevolucion", "hidden", "", $TotalDevolucion, "", "black", "", "", 150, 30, 0, 0); $css->CrearTabla(); $css->FilaTabla(16); $css->ColTabla("<h3 align='right'>Total</h3>", 1); $css->ColTabla("<h3 align='right'>" . number_format($TotalDevolucion) . "</h3>", 1); $css->CierraFilaTabla(); $css->FilaTabla(16); print "<td colspan=2 style='text-align:center'>"; $css->CrearInputText("TxtFechaDevolucion", "text", "", date("Y-m-d"), "Fecha", "black", "", "", 150, 30, 0, 1); $css->CrearInputText("TxtHoraDevolucion", "text", "", date("H:i:s"), "Hora", "black", "", "", 150, 30, 0, 1); print "<br>"; $css->CrearTextArea("TxtObservacionesDevolucion", "", "", "Observaciones para este Ajuste", "black", "", "", 300, 100, 0, 0); print "<br>Facturar: <br>"; $css->CrearSelect("CmbFactura", "MuestraOculta('OpcionesFact')"); $css->CrearOptionSelect("NO", "NO", 0); $css->CrearOptionSelect("SI", "SI", 1); $css->CerrarSelect(); $css->CrearDiv("OpcionesFact", "", "center", 1, 1); print "Centro de costos: <br>"; $css->CrearSelect("CmbCentroCostos", ""); $Consulta = $obVenta->ConsultarTabla("centrocosto", ""); if (mysql_num_rows($Consulta)) { while ($DatosCentroCosto = mysql_fetch_array($Consulta)) { $css->CrearOptionSelect($DatosCentroCosto["ID"], $DatosCentroCosto["Nombre"], 0); } } else { $css->AlertaJS("No hay centros de costo creados por favor cree uno", 1, "", "");
$DatosOT = $obVenta->DevuelveValores("ordenesdetrabajo", "ID", $idOT); $idCliente = $DatosOT["idCliente"]; $DatosCliente = $obVenta->DevuelveValores("clientes", "idClientes", $idCliente); //Creamos el formulario para agregar items al formulario $css->CrearTabla(); $css->FilaTabla(16); print "<td>"; $css->CreaBotonDesplegable("AgregarItemOT", "Agregar un Item a Esta OT"); print "</td>"; $css->CierraFilaTabla(); $css->CerrarTabla(); /////////////////Cuadro de dialogo de Clientes create $css->CrearCuadroDeDialogo("AgregarItemOT", "Agregar un Item a Esta OT"); $css->CrearForm2("FrmAgregaItemsOT", $myPage, "post", "_self"); $css->CrearInputText("TxtIdOT", "hidden", "Actividad:", $idOT, "", "", "", "", "", "", "", ""); $css->CrearTextArea("TxtActividad", "", "", "Describa la actividad a realizar", "", "", "", 200, 100, 0, 1); print "<br>"; $css->CrearInputText("TxtFechaIni", "text", "Fecha de Inicio:", date("Y-m-d"), "Fecha Inicio", "black", "", "", 200, 30, 0, 1); print "<br>"; $css->CrearInputText("TxtFechaFin", "text", "Fecha Final:", date("Y-m-d"), "Fecha Fin", "black", "", "", 200, 30, 0, 1); print "<br>"; $css->CrearInputNumber("TxtHoras", "number", "Tiempo Estimado para esta Actividad:", 1, "Tiempo Estimado", "black", "", "", 200, 30, 0, 1, 0, 100000000, "any"); print "<br>"; $css->CrearTextArea("TxtObservaciones", "", "", "Observaciones a tener en cuenta", "", "", "", 200, 100, 0, 0); print "<br>"; $VarSelect["Ancho"] = 200; $VarSelect["PlaceHolder"] = "Seleccione un Colaborador"; $css->CrearSelectChosen("CmbColaborador", $VarSelect); $Consulta = $obVenta->ConsultarTabla("colaboradores", ""); while ($DatosColaboradores = $obVenta->FetchArray($Consulta)) { $css->CrearOptionSelect($DatosColaboradores[0], $DatosColaboradores["Nombre"], 0);