Пример #1
0
 	echo "</pre>";*/
 extract($_POST);
 include_once "../../class/config.php";
 include_once "../../class/factura.php";
 include_once "../../class/cuota.php";
 include_once "../../class/facturadetalle.php";
 $config = new config();
 $factura = new factura();
 $facturadetalle = new facturadetalle();
 $cuota = new cuota();
 $estado = $factura->statusTable();
 $CodFactura = $estado['Auto_increment'];
 $NumeroAutorizacion = $config->mostrarConfig("NumeroAutorizacion", 1);
 $LlaveDosificacion = $config->mostrarConfig("LlaveDosificacion", 1);
 $FechaLimiteEmision = $config->mostrarConfig("FechaLimiteEmision", 1);
 $f = $factura->mostrarFacturas("NFactura='" . trim($NFactura) . "' and Estado='Activo'");
 if (count($f)) {
     header("Location: ./?f=1&NFactura=" . trim($NFactura));
 }
 $FechaCodigo = date("Ymd", strtotime($FechaFactura));
 $TotalBsCodigo = round(str_replace(',', '.', $TotalBs), 0);
 include_once "../codigocontrol.class.php";
 $CodigoControl = new CodigoControl($NumeroAutorizacion, $NFactura, $Nit, $FechaCodigo, $TotalBsCodigo, $LlaveDosificacion);
 $TxtCodigoDeControl = $CodigoControl->generar();
 /*CódigoQR*/
 $NitEmisor = $config->mostrarConfig("NitEmisor", 1);
 $RazonSocialEmisor = $config->mostrarConfig("RazonSocialEmisor", 1);
 $SistemaFacturacion = $config->mostrarConfig("SistemaFacturacion", 1);
 $ImagenFondoFactura = $config->mostrarConfig("ImagenFondoFactura", 1);
 $ActividadEconomica = $config->mostrarConfig("ActividadEconomica", 1);
 $LeyendaPiePagina = $config->mostrarConfig("LeyendaPiePagina", 1);
Пример #2
0
<?php

include_once "../../login/check.php";
$FechaInicio = $_GET['FechaInicio'];
$FechaFinal = $_GET['FechaFinal'];
include_once "../../class/factura.php";
include_once "../../class/alumno.php";
include_once "../../class/curso.php";
include_once "../../factura/codigocontrol.class.php";
$factura = new factura();
$fac = $factura->mostrarFacturas("(FechaFactura BETWEEN '{$FechaInicio}' and '{$FechaFinal}') and Estado='Valido'");
$alumno = new alumno();
$curso = new curso();
$titulo = "NVerificarCodigosControl";
$folder = "../../";
include_once $folder . "cabecerahtml.php";
?>
<script language="javascript" src="../../js/factura/revisarcodigo.js"></script>
<?php 
include_once $folder . "cabecera.php";
?>
<div class="span12 box">
    <div class="box-header"><h2><?php 
echo $idioma['Configuracion'];
?>
</h2></div>
    <div class="box-content">
    	<form action="mostrar.php" method="post" class="formulario">
        <table class="table table-bordered">
            <thead>
                <tr>
Пример #3
0
<?php

include_once "../login/check.php";
include_once "../class/factura.php";
include_once "../class/alumno.php";
include_once "../class/curso.php";
include_once "../factura/codigocontrol.class.php";
$factura = new factura();
$fac = $factura->mostrarFacturas("Estado='Valido'");
$alumno = new alumno();
$curso = new curso();
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Listado de Facturas Erroneas</title>
</head>

<body>
<style type="text/css">
body{
	font-family:Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif	
}
a{
	background-color:#CCC;
	padding:4px;
	color:#333;
	text-decoration:none;	
}
</style>
Пример #4
0
if ($Nit != "") {
    array_push($condi, "Nit='{$Nit}'");
}
if ($Factura != "") {
    array_push($condi, "Factura LIKE '%{$Factura}%'");
}
if ($Estado != "") {
    array_push($condi, "Estado LIKE '%{$Estado}%'");
}
if ($Tipo != "") {
    array_push($condi, "Tipo LIKE '%{$Tipo}%'");
}
$where = implode(" and ", $condi);
include_once "../../class/factura.php";
$factura = new factura();
$fac = $factura->mostrarFacturas($where);
?>
<a class="btn btn-mini btn-success" id="exportarexcel"><?php 
echo $idioma['ExportarExcel'];
?>
</a>
<table class="table table-bordered table-hover table-striped">
<thead>
	<tr>
    	<th colspan="2"><?php 
echo $idioma['RangoFecha'];
?>
:</th>
        <th colspan="2"><?php 
echo fecha2Str($FechaFacturaInicio);
?>