コード例 #1
0
ファイル: CuentasXCobrar.php プロジェクト: jalvaran/SCTV52
print "<br>";
$css->CrearSelect("CmbDebitoCredito", "");
$css->CrearOptionSelect("D", "Debito", 1);
$css->CrearOptionSelect("C", "Credito", 0);
$css->CerrarSelect();
print "</td>";
print "<td>";
$css->CrearTextArea("TxtConceptoEgreso", "<strong>Concepto:</strong><br>", "", "Escriba el Concepto", "black", "", "", 300, 100, 0, 1);
print "</td>";
print "<td>";
$css->CrearInputText("TxtNumFactura", "text", 'Numero del Documento soporte:<br>', "", "Numero del documento", "black", "", "", 300, 30, 0, 1);
echo "<br>";
$css->CrearUpload("foto");
echo "<br>";
echo "<br>";
$css->CrearBotonVerde("BtnAgregarItemMov", "Agregar Concepto");
print "</td>";
$css->CierraFilaTabla();
$css->CerrarTabla();
$css->CerrarForm();
$sql = "SELECT SUM(Debito) as Debito, SUM(Credito) as Credito FROM comprobantes_contabilidad_items WHERE idComprobante='{$idComprobante}'";
$consulta = $obVenta->Query($sql);
$DatosSumas = $obVenta->FetchArray($consulta);
$Debitos = $DatosSumas["Debito"];
$Credito = $DatosSumas["Credito"];
$Neto = $Debitos - $Credito;
if ($Neto != 0) {
    $css->CrearNotificacionRoja("Debitos = {$Debitos}, Creditos = {$Credito}, existe una diferencia de {$Neto}, no podrá guardar hasta que no sean iguales", 14);
    $H = 0;
} else {
    $css->CrearNotificacionVerde("Debitos = {$Debitos}, Creditos = {$Credito}, Pulse el boton si desea cerrar el comprobante", 14);
コード例 #2
0
ファイル: AgregaItemsOC.php プロジェクト: jalvaran/SCTV52
 print "<br><br>";
 $css->CrearInputNumber("TxtCantidad", "number", "Cantidad:", 1, "Valor Unitario", "black", "", "", 200, 30, 0, 1, 0, 100000000, "any");
 print "<br><br>";
 $css->CrearInputNumber("TxtValorUnitario", "number", "Valor Unitario:", "", "Valor Unitario", "black", "", "", 200, 30, 0, 1, 0, 100000000, "any");
 print "<br><br>";
 $VarSelect["Ancho"] = 200;
 $VarSelect["PlaceHolder"] = "Seleccione el IVA";
 $css->CrearSelectChosen("CmbIVA", $VarSelect);
 $Consulta = $obVenta->ConsultarTabla("porcentajes_iva", "");
 $css->CrearOptionSelect("NO", "SELECCIONE EL IVA DE ESTE PRODUCTO", 0);
 while ($DatosIVA = $obVenta->FetchArray($Consulta)) {
     $css->CrearOptionSelect($DatosIVA[0], $DatosIVA["Nombre"], 0);
 }
 $css->CerrarSelect();
 print "<br><br>";
 $css->CrearBotonVerde("BtnAgregarItemOT", "Agregar Item");
 $css->CerrarForm();
 $css->CerrarCuadroDeDialogo();
 $css->CrearTabla();
 $css->FilaTabla(16);
 $css->ColTabla('OC:', 1);
 $css->ColTabla($idOT, 1);
 $css->ColTabla('TERCERO:', 1);
 $css->ColTabla($DatosCliente["RazonSocial"], 1);
 $css->CierraFilaTabla();
 $css->CerrarTabla();
 $css->CrearTabla();
 $css->CrearNotificacionAzul("ITEMS EN ESTA OC", 18);
 $css->FilaTabla(16);
 ///////////////////////////////////////////
 /////////////Visualizamos la COTIZACION
コード例 #3
0
ファイル: FacturaCotizacion.php プロジェクト: jalvaran/SCTV52
 $css->ColTabla("<strong>Total Item</strong>", 1);
 $css->ColTabla("<strong>Borrar</strong>", 1);
 $css->CierraFilaTabla();
 while ($DatosItemsCotizacion = mysql_fetch_array($consulta)) {
     $idItem = $DatosItemsCotizacion["ID"];
     $css->FilaTabla(16);
     $css->ColTabla($DatosItemsCotizacion["Referencia"], 1);
     $css->ColTabla($DatosItemsCotizacion["Descripcion"], 1);
     $DatosProducto = $obVenta->DevuelveValores($DatosItemsCotizacion["TablaOrigen"], "Referencia", $DatosItemsCotizacion["Referencia"]);
     print "<td>";
     $css->CrearForm("FormEditarCotizacion{$idItem}", $myPage, "post", "_self");
     $css->CrearInputText("TxtIdCotizacion", "hidden", "", $idCotizacion, "", "", "", "", "", "", 0, 0);
     $css->CrearInputText("TxtIdItemCotizacion", "hidden", "", $idItem, "", "", "", "", "", "", 0, 0);
     $css->CrearInputNumber("TxtValorUnitario", "number", "", $DatosItemsCotizacion["ValorUnitario"], "ValorUnitario", "black", "", "", 120, 30, 0, 1, $DatosProducto["CostoUnitario"], $DatosItemsCotizacion["ValorUnitario"] . "0", "any");
     $css->CrearInputNumber("TxtCantidad", "number", "", $DatosItemsCotizacion["Cantidad"], "ValorUnitario", "black", "", "", 80, 30, 0, 1, 1.0E-5, "", "any");
     $css->CrearBotonVerde("BtnEditar", "E");
     $css->CerrarForm();
     print "</td>";
     $css->ColTabla($DatosItemsCotizacion["Subtotal"], 1);
     $css->ColTablaDel($myPage, "cot_itemscotizaciones", "ID", $DatosItemsCotizacion['ID'], $idCotizacion);
     $css->CierraFilaTabla();
 }
 $css->CerrarTabla();
 /////////////////Mostramos Totales y Se crea el formulario para guardar la devolucion
 ////
 ////
 $Subtotal = $obVenta->Sume("cot_itemscotizaciones", "Subtotal", "WHERE NumCotizacion='{$idCotizacion}'");
 $IVA = $obVenta->Sume("cot_itemscotizaciones", "IVA", "WHERE NumCotizacion='{$idCotizacion}'");
 $Total = $obVenta->Sume("cot_itemscotizaciones", "Total", "WHERE NumCotizacion='{$idCotizacion}'");
 $css->CrearFormularioEvento("FormGeneraFactura", $myPage, "post", "_self", "");
 $css->CrearInputText("TxtIdCotizacion", "hidden", "", $idCotizacion, "", "black", "", "", 150, 30, 0, 0);
コード例 #4
0
ファイル: InformeVentas.php プロジェクト: jalvaran/SCTV52
function CrearFormularioInformes($VectorInformes)
{
    $FormName = $VectorInformes["FormName"];
    $ActionForm = $VectorInformes["ActionForm"];
    $Metod = $VectorInformes["Metod"];
    $Target = $VectorInformes["Target"];
    $Titulo = $VectorInformes["Titulo"];
    $idUser = $_SESSION['idUser'];
    $obVenta = new ProcesoVenta($idUser);
    $css = new CssIni("Balance de Comprobacion");
    $css->CrearForm2($FormName, $ActionForm, $Metod, $Target);
    $css->CrearTabla();
    $css->FilaTabla(14);
    $css->ColTabla("<strong>{$Titulo}</strong>", 5);
    $css->CierraFilaTabla();
    $css->FilaTabla(14);
    $css->ColTabla("<strong>TIPO:</strong>", 1);
    $css->ColTabla("<strong>FECHA INICIAL:</strong>", 1);
    $css->ColTabla("<strong>FECHA FINAL:</strong>", 1);
    $css->ColTabla("<strong>EMPRESA:</strong>", 1);
    $css->ColTabla("<strong>CENTRO DE COSTOS:</strong>", 1);
    $css->CierraFilaTabla();
    $css->FilaTabla(14);
    print "<td>";
    $css->CrearSelect("CmbTipoReporte", "");
    $css->CrearOptionSelect("Corte", "Fecha de Corte", 1);
    $css->CrearOptionSelect("Rango", "Por Rango de Fechas", 0);
    $css->CerrarSelect();
    print "<br>";
    $css->CrearInputText("TxtFechaCorte", "date", "Fecha de Corte:<br>", date("Y-m-d"), "Fecha Corte", "black", "", "", 150, 30, 0, 1);
    print "</td>";
    print "<td>";
    $css->CrearInputText("TxtFechaIni", "date", "", date("Y-m-d"), "Fecha Inicial", "black", "", "", 150, 30, 0, 1);
    print "</td>";
    print "<td>";
    $css->CrearInputText("TxtFechaFinal", "date", "", date("Y-m-d"), "Fecha Inicial", "black", "", "", 150, 30, 0, 1);
    print "</td>";
    print "<td>";
    $css->CrearSelect("CmbEmpresaPro", "");
    $css->CrearOptionSelect("ALL", "COMPLETO", 0);
    $consulta = $obVenta->ConsultarTabla("empresapro", "");
    while ($DatosEmpresa = $obVenta->FetchArray($consulta)) {
        $css->CrearOptionSelect($DatosEmpresa["idEmpresaPro"], $DatosEmpresa["RazonSocial"], 0);
    }
    $css->CerrarSelect();
    print "</td>";
    print "<td>";
    $css->CrearSelect("CmbCentroCostos", "");
    $consulta = $obVenta->ConsultarTabla("centrocosto", "");
    $css->CrearOptionSelect("ALL", "COMPLETO", 0);
    while ($DatosEmpresa = $obVenta->FetchArray($consulta)) {
        $css->CrearOptionSelect($DatosEmpresa["ID"], $DatosEmpresa["Nombre"], 0);
    }
    $css->CerrarSelect();
    print "</td>";
    $css->FilaTabla(16);
    print "<td colspan='5' style='text-align:center'>";
    $css->CrearBotonVerde("BtnVerInforme", "Generar Informe");
    print "</td>";
    $css->CierraFilaTabla();
    $css->CerrarTabla();
    $css->CerrarForm();
}