Ejemplo n.º 1
0
/**
 * Vuelca en la salida estándar el buffer de tickets pendientes de imprimir.
 */
function remote_printer()
{
    if (isset($_REQUEST['terminal'])) {
        require_model('terminal_caja.php');
        $t0 = new terminal_caja();
        $terminal = $t0->get($_REQUEST['terminal']);
        if ($terminal) {
            echo $terminal->tickets;
            $terminal->tickets = '';
            $terminal->save();
        } else {
            echo 'ERROR: terminal no encontrado.';
        }
    }
}
Ejemplo n.º 2
0
 * Copyright (C) 2015-2016  Carlos Garcia Gomez  neorazorx@gmail.com
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('inme_fuente.php');
/**
 * Description of inme_noticia_fuente
 *
 * @author carlos
 */
class inme_noticia_fuente extends fs_model
{
    public $id;
    public $id_relacionada;
    public $url;
    public $titulo;
    public $texto;
    public $resumen;
    public $fecha;
    public $publicada;
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * @author Valentin
 */
//require_model('agente.php');
require_model('cliente.php');
require_model('maquinas.php');
//require_model('cuenta_banco_cliente.php');
//require_model('direccion_cliente.php');
//require_model('divisa.php');
//equire_model('forma_pago.php');
//require_model('grupo_clientes.php');
//require_model('pais.php');
//require_model('serie.php');
class listado_maquinas_cliente extends fs_controller
{
    //public $agente;
    public $allow_delete;
    public $cliente;
    // public $cuenta_banco;
    // public $grupo;
    //public $pais;
Ejemplo n.º 4
0
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('agente.php');
require_model('articulo.php');
require_model('proveedor.php');
require_model('tarifas_proveedores.php');
class tarifas_proveedor extends fs_controller
{
    public $agente;
    public $articulos;
    public $offset;
    public $proveedor;
    public $tarifas_all;
    public $tarifas_select;
    public $tarifas;
    public $allow_delete;
    public $articulo_s;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'Tarifas de proveedor', 'compras', FALSE, FALSE);
    }
Ejemplo n.º 5
0
 * Copyright (C) 2014-2016  Carlos Garcia Gomez  neorazorx@gmail.com
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('agente.php');
class admin_agentes extends fs_controller
{
    public $agente;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'Empleados', 'admin', TRUE, TRUE);
    }
    protected function private_core()
    {
        $this->agente = new agente();
        if (isset($_POST['sdnicif'])) {
            $age0 = new agente();
            $age0->codagente = $age0->get_new_codigo();
            $age0->nombre = $_POST['snombre'];
            $age0->apellidos = $_POST['sapellidos'];
Ejemplo n.º 6
0
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
require_model('proveedor_sms.php');
require_model('cliente.php');
require_model('servicio_cliente.php');
require_model('pedido_cliente.php');
require_model('detalle_servicio.php');
/**
 * Description of enviar_sms
 *
 * @author luismi
 */
class enviar_sms extends fs_controller
{
    public $cliente;
    public $documento;
    public $documento_url;
    public $id;
    public $mensaje;
    public $provsms;
    public $telefono;
    public function __construct()
Ejemplo n.º 7
0
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_once 'plugins/facturacion_base/extras/fs_pdf.php';
require_once 'extras/phpmailer/class.phpmailer.php';
require_once 'extras/phpmailer/class.smtp.php';
require_model('cliente.php');
require_model('cuenta_banco.php');
require_model('cuenta_banco_cliente.php');
require_model('forma_pago.php');
/**
 * Esta clase agrupa los procedimientos de imprimir/enviar albaranes y facturas.
 */
class ventas_imprimir extends fs_controller
{
    public $albaran;
    public $cliente;
    public $factura;
    public $impresion;
    public $impuesto;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'imprimir', 'ventas', FALSE, FALSE);
    }
    protected function process()
Ejemplo n.º 8
0
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('almacen.php');
require_model('articulo.php');
require_model('cliente.php');
require_model('dircliente.php');
require_model('distribucion_clientes.php');
require_model('distribucion_rutas.php');
require_model('distribucion_segmentos.php');
require_model('cliente_ruta.php');
require_model('unidadmedida.php');
require_model('articulo_unidadmedida.php');
/**
 * Description of distribucion_venta
 *
 * @author Joe Nilson <joenilson at gmail.com>
 */
class distribucion_venta extends fs_controller
{
    public $almacen;
    public $codalmacen;
    public $rutas_almacen;
    public $total_rutas_almacen;
    public $distribucion_clientes;
    public $distribucion_rutas;
    public $distribucion_segmentos;
    public $fecha_pedido;
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('articulo.php');
require_model('asiento.php');
require_model('caja.php');
require_model('divisa.php');
require_model('ejercicio.php');
require_model('impuesto.php');
require_model('subcuenta.php');
require_model('factura_proveedor.php');
require_model('pago_por_caja.php');
require_model('partida.php');
require_once 'plugins/facturacion_base/extras/libromayor.php';
class contabilidad_asiento extends fs_controller
{
    public $allow_delete;
    /**
     * @var asiento
     */
    public $asiento;
    public $divisa;
    public $ejercicio;
    public $impuesto;
    public $lineas;
    public $resultados;
    public $subcuenta;
    public $resultados1;
Ejemplo n.º 10
0
 * Copyright (C) 2015-2016  Carlos Garcia Gomez  neorazorx@gmail.com
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('inme_tema.php');
/**
 * Description of informame_temas
 *
 * @author carlos
 */
class inme_temas extends fs_controller
{
    public $offset;
    public $orden;
    public $num_resultados;
    public $resultados;
    public $tema;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'Temas', 'informame');
Ejemplo n.º 11
0
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_once 'plugins/facturacion_base/extras/fs_pdf.php';
require_once 'extras/phpmailer/class.phpmailer.php';
require_once 'extras/phpmailer/class.smtp.php';
require_model('cliente.php');
require_model('impuesto.php');
require_model('servicio_cliente.php');
/**
 * Esta clase agrupa los procedimientos de imprimir/enviar presupuestos y servicios.
 */
class imprimir_servicio extends fs_controller
{
    public $cliente;
    public $impresion;
    public $impuesto;
    public $servicio;
    public $st;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'imprimir', 'ventas', FALSE, FALSE);
    }
    protected function private_core()
Ejemplo n.º 12
0
 *  * published by the Free Software Foundation, either version 3 of the
 *  * License, or (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See th * e
 *  * GNU Affero General Public License for more details.
 *  * 
 *  * You should have received a copy of the GNU Affero General Public License
 *  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('almacen.php');
require_model('pais.php');
require_model('agencia_transporte.php');
require_model('distribucion_tipounidad.php');
require_model('distribucion_unidades.php');
/**
 * Description of distribucion_unidades
 *
 * @author Joe Nilson <*****@*****.**>
 */
class distrib_unidades extends fs_controller
{
    public $almacen;
    public $pais;
    public $agencia_transporte;
    public $distribucion_tipounidad;
    public $distribucion_unidades;
    public $listado;
    public function __construct()
    {
Ejemplo n.º 13
0
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('cuenta.php');
require_model('direccion_proveedor.php');
require_model('subcuenta.php');
require_model('subcuenta_proveedor.php');
/**
 * Un proveedor. Puede estar relacionado con varias direcciones o subcuentas.
 */
class proveedor extends fs_model
{
    /**
     * Clave primaria. Varchar (6).
     * @var type 
     */
    public $codproveedor;
    /**
     * Nombre por el que se conoce al proveedor, puede ser el nombre oficial o no.
     * @var type 
     */
    public $nombre;
Ejemplo n.º 14
0
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('agente.php');
require_model('articulo.php');
require_model('cliente.php');
require_model('factura_cliente.php');
class ventas_facturas extends fs_controller
{
    public $agente;
    public $articulo;
    public $buscar_lineas;
    public $cliente;
    public $codagente;
    public $codserie;
    public $desde;
    public $factura;
    public $hasta;
    public $huecos;
    public $lineas;
    public $mostrar;
    public $num_resultados;
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('ejercicio.php');
require_once 'plugins/facturacion_base/extras/inventarios_balances.php';
require_model('subcuenta.php');
require_model('recibo_proveedor.php');
class informe_contabilidad extends fs_controller
{
    public $ejercicio;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'Contabilidad', 'informes', FALSE, TRUE);
    }
    protected function private_core()
    {
        $this->subcuenta = new subcuenta();
        $this->ejercicio = new ejercicio();
        $this->ppage = $this->page->get('libro_mayor_generar');
        if (isset($_REQUEST['buscar_subcuenta'])) {
            $this->buscar_subcuenta();
        }
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('atributo.php');
require_model('atributo_valor.php');
/**
 * Description of ventas_atributos
 *
 * @author carlos
 */
class ventas_atributos extends fs_controller
{
    public $allow_delete;
    public $atributo;
    public $resultados;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'Atributod de artículos', 'ventas', FALSE, FALSE);
    }
    protected function private_core()
Ejemplo n.º 17
0
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('cuenta.php');
require_model('ejercicio.php');
class contabilidad_cuentas extends fs_controller
{
    public $cuenta;
    public $ejercicio;
    public $resultados;
    public $resultados2;
    public $offset;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'Cuentas', 'contabilidad', FALSE, TRUE);
    }
    protected function private_core()
    {
        $this->cuenta = new cuenta();
        $this->ejercicio = new ejercicio();
Ejemplo n.º 18
0
<?php

/**
 * @author Carlos García Gómez      neorazorx@gmail.com
 * @copyright 2014-2015, Carlos García Gómez. All Rights Reserved. 
 */
require_model('asiento.php');
require_model('asiento_factura.php');
require_model('cliente.php');
/**
 * Description of pagar_facturas
 *
 * @author carlos
 */
class pagar_facturas extends fs_controller
{
    public $cliente;
    public $codcliente;
    public $codserie;
    public $desde;
    public $hasta;
    public $resultados;
    public $serie;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'Pagar facturas', 'ventas', FALSE, FALSE);
    }
    protected function private_core()
    {
        $this->desde = Date('01-m-Y');
        if (isset($_POST['desde'])) {
Ejemplo n.º 19
0
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('ejercicio.php');
require_model('factura_cliente.php');
require_model('linea_albaran_cliente.php');
require_model('secuencia.php');
/**
 * Albarán (boceto de factura o factura preliminar) de cliente
 */
class albaran_cliente extends fs_model
{
    public $idalbaran;
    public $idfactura;
    public $codigo;
    public $codserie;
    public $codejercicio;
    public $codcliente;
    public $codagente;
    public $codpago;
    public $coddivisa;
    public $codalmacen;
 * Copyright (C) 2014  Carlos Garcia Gomez  neorazorx@gmail.com
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('pais.php');
class admin_paises extends fs_controller
{
    public $pais;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'Paises', 'admin', FALSE, TRUE);
    }
    protected function process()
    {
        $this->pais = new pais();
        if (isset($_POST['scodpais'])) {
            $pais = $this->pais->get($_POST['scodpais']);
            if (!$pais) {
                $pais = new pais();
                $pais->codpais = $_POST['scodpais'];
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('idioma_fac_det.php');
require_model('traduccion_fac_det.php');
/**
 * Description of opciones_servicios
 *
 * @author javier
 */
class idioma_factura_detallada extends fs_controller
{
    public $idioma;
    public $traduccion;
    public $abreviatura;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'Idioma fact', 'admin', TRUE, TRUE);
    }
    protected function private_core()
Ejemplo n.º 22
0
<?php

namespace Qnet\Dao;

require_once dirname(__FILE__) . '\\..\\util.php';
require_db();
require_model('User');
use Qnet\Model\User;
class UserDAO
{
    public function selectUserById($userId)
    {
        $connector = new DBConnector();
        $connection = $connector->createConnection();
        $query = 'SELECT name, lastname, password, alive FROM users u WHERE u.alive=1 AND u.id=' . $userId;
        $result = mysql_query($query) or die("Error in query: {$query}. " . mysql_error());
        if (!$result || mysql_num_rows($result) == 0) {
            return false;
        }
        $data = mysql_fetch_assoc($result);
        $name = $data['name'];
        $lastname = $data['lastname'];
        $password = $data['password'];
        $alive = $data['alive'];
        mysql_free_result($result);
        $id = intval($userId);
        $query = 'SELECT * FROM userinfo u WHERE u.FK_users=' . $userId;
        $result = mysql_query($query) or die("Error in query: {$query}. " . mysql_error());
        $data = mysql_fetch_row($result);
        $user = new User($name, $lastname, $password, $data[2], $data[3], $data[4], $data[5], $data[6], $data[7], $data[8], $data[9], $alive);
        $user->setId($id);
Ejemplo n.º 23
0
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('agente.php');
require_model('albaran_cliente.php');
require_model('articulo.php');
require_model('cliente.php');
require_model('serie.php');
class ventas_albaranes extends fs_controller
{
    public $agente;
    public $articulo;
    public $buscar_lineas;
    public $cliente;
    public $codagente;
    public $codserie;
    public $desde;
    public $hasta;
    public $lineas;
    public $mostrar;
    public $num_resultados;
    public $offset;
    public $order;
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('agente.php');
require_model('albaran_proveedor.php');
require_model('articulo.php');
require_model('proveedor.php');
class compras_albaranes extends fs_controller
{
    public $agente;
    public $articulo;
    public $buscar_lineas;
    public $lineas;
    public $offset;
    public $proveedor;
    public $resultados;
    public function __construct()
    {
        parent::__construct(__CLASS__, ucfirst(FS_ALBARANES) . ' de proveedor', 'compras', FALSE, TRUE, TRUE);
    }
    protected function process()
    {
Ejemplo n.º 25
0
<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 * Description of Caja General
 *
 * @author Zapasoft
 */
require_model('cajas_general.php');
require_model('cajas_general_mov.php');
class caja_general extends fs_controller
{
    public $recogidas_model;
    public $resultado;
    public $almacenes;
    public $allow_delete;
    public $busqueda;
    public $offset;
    public $agente;
    public $cajamov_model;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'Caja General', 'contabilidad', FALSE, TRUE);
        /// cualquier cosa que pongas aquí se ejecutará DESPUÉS de process()
    }
    /**
     * esta función se ejecuta si el usuario ha hecho login,
Ejemplo n.º 26
0
require_model('agente.php');
require_model('almacen.php');
require_model('articulo.php');
require_model('asiento_factura.php');
require_model('caja.php');
require_model('cliente.php');
require_model('divisa.php');
require_model('ejercicio.php');
require_model('factura_cliente.php');
require_model('familia.php');
require_model('forma_pago.php');
require_model('grupo_clientes.php');
require_model('impuesto.php');
require_model('serie.php');
require_model('tarifa.php');
require_model('terminal_caja.php');
class tpv_recambios extends fs_controller
{
    public $agente;
    public $almacen;
    public $allow_delete;
    public $articulo;
    public $caja;
    public $cliente;
    public $cliente_s;
    public $divisa;
    public $ejercicio;
    public $equivalentes;
    public $familia;
    public $forma_pago;
    public $imprimir_descripciones;
Ejemplo n.º 27
0
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
/*Esto es temporal*/
define('FS_SERVICIOS', 'servicios');
define('FS_SERVICIO', 'servicio');
require_model('albaran_cliente.php');
require_model('cliente.php');
require_model('linea_servicio_cliente.php');
require_model('secuencia.php');
require_model('estado_servicio.php');
/**
 * Pedido de cliente
 */
class servicio_cliente extends fs_model
{
    /**
     * Clave primaria.
     * @var type 
     */
    public $idservicio;
    /**
     * ID del albarán relacionado, si lo hay.
     * @var type 
     */
    public $idalbaran;
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('albaran_cliente.php');
require_model('asiento.php');
require_model('asiento_factura.php');
require_model('cliente.php');
require_model('ejercicio.php');
require_model('factura_cliente.php');
require_model('forma_pago.php');
require_model('partida.php');
require_model('regularizacion_iva.php');
require_model('serie.php');
require_model('subcuenta.php');
class ventas_agrupar_albaranes extends fs_controller
{
    public $albaran;
    public $cliente;
    public $desde;
    private $forma_pago;
    public $hasta;
    public $neto;
    public $observaciones;
    public $resultados;
    public $serie;
    public $total;
    public function __construct()
    {
        parent::__construct(__CLASS__, 'Agrupar ' . FS_ALBARANES, 'ventas', FALSE, FALSE);
Ejemplo n.º 29
0
 */
require_model('almacen.php');
require_model('articulo.php');
require_model('asiento_factura.php');
require_model('cliente.php');
require_model('divisa.php');
require_model('fabricante.php');
require_model('familia.php');
require_model('forma_pago.php');
require_model('grupo_clientes.php');
require_model('impuesto.php');
require_model('pais.php');
require_model('pedido_cliente.php');
require_model('presupuesto_cliente.php');
require_model('serie.php');
require_model('tarifa.php');
class nueva_venta extends fs_controller
{
    public $agente;
    public $almacen;
    public $articulo;
    public $cliente;
    public $cliente_s;
    public $direccion;
    public $divisa;
    public $fabricante;
    public $familia;
    public $forma_pago;
    public $grupo;
    public $impuesto;
    public $nuevocli_setup;
Ejemplo n.º 30
0
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_model('agente.php');
require_model('articulo.php');
require_model('proveedor.php');
require_model('pedido_proveedor.php');
class compras_pedidos extends fs_controller
{
    public $buscar_lineas;
    public $lineas;
    public $offset;
    public $resultados;
    public function __construct()
    {
        parent::__construct(__CLASS__, ucfirst(FS_PEDIDOS) . ' de compra', 'compras');
    }
    protected function private_core()
    {
        $pedido = new pedido_proveedor();
        $this->offset = 0;
        if (isset($_GET['offset'])) {