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(); } if (isset($_POST['codejer']) and isset($_POST['query'])) { $this->new_search(); } if (isset($_GET['diario'])) { $this->libro_diario_csv($_GET['diario']); } else { if (isset($_GET['balance']) and isset($_GET['eje'])) { $this->template = FALSE; $iba = new inventarios_balances(); if ($_GET['balance'] == 'pyg') { $iba->generar_pyg($_GET['eje']); } else { $iba->generar_sit($_GET['eje']); } } else { if (isset($_POST['codejercicio'])) { $this->balance_sumas_y_saldos(); } } } }
protected function private_core() { $this->balance = new balance(); $this->balance_cuenta_a = new balance_cuenta_a(); $this->ejercicio = new ejercicio(); if (isset($_GET['diario'])) { $this->libro_diario_csv($_GET['diario']); } else { if (isset($_GET['balance']) and isset($_GET['eje'])) { $this->template = FALSE; $iba = new inventarios_balances(); if ($_GET['balance'] == 'pyg') { $iba->generar_pyg($_GET['eje']); } else { $iba->generar_sit($_GET['eje']); } } else { if (isset($_POST['informe'])) { if ($_POST['informe'] == 'sumasysaldos') { $this->balance_sumas_y_saldos(); } else { if ($_POST['informe'] == 'situacion') { $this->balance_situacion(); } } } } } }
protected function process() { $this->show_fs_toolbar = FALSE; $this->ejercicio = new ejercicio(); if (isset($_GET['balance']) and isset($_GET['eje'])) { $this->template = FALSE; $iba = new inventarios_balances(); if ($_GET['balance'] == 'pyg') { $iba->generar_pyg($_GET['eje']); } else { $iba->generar_sit($_GET['eje']); } } }
protected function process() { $this->ejercicio = new ejercicio(); if (isset($_GET['diario'])) { $this->libro_diario_csv($_GET['diario']); } else { if (isset($_GET['balance']) and isset($_GET['eje'])) { $this->template = FALSE; $iba = new inventarios_balances(); if ($_GET['balance'] == 'pyg') { $iba->generar_pyg($_GET['eje']); } else { $iba->generar_sit($_GET['eje']); } } else { if (isset($_POST['codejercicio'])) { $this->balance_sumas_y_saldos(); } } } }
protected function private_core() { $this->balance = new balance(); $this->balance_cuenta_a = new balance_cuenta_a(); $this->ejercicio = new ejercicio(); if (isset($_REQUEST['buscar_subcuenta'])) { /// esto es para el autocompletar las subcuentas de la vista $this->buscar_subcuenta(); } else { if (isset($_GET['diario'])) { $this->libro_diario_csv($_GET['diario']); } else { if (isset($_GET['balance']) and isset($_GET['eje'])) { $this->template = FALSE; $iba = new inventarios_balances($this->db); if ($_GET['balance'] == 'pyg') { $iba->generar_pyg($_GET['eje']); } else { $iba->generar_sit($_GET['eje']); } } else { if (isset($_POST['informe'])) { if ($_POST['informe'] == 'sumasysaldos') { $this->balance_sumas_y_saldos(); } else { if ($_POST['informe'] == 'situacion') { $this->balance_situacion(); } else { if ($_POST['informe'] == 'perdidasyg') { $this->balance_perdidasyg(); } else { if ($_POST['informe'] == 'librom') { if ($_POST['filtro'] == '') { $this->libro_diario_csv($_POST['codejercicio'], $_POST['desde'], $_POST['hasta']); } else { if (isset($_POST['codgrupo'])) { $this->libro_mayor_csv($_POST['codejercicio'], $_POST['desde'], $_POST['hasta'], $_POST['codgrupo']); } else { if (isset($_POST['codepigrafe'])) { $this->libro_mayor_csv($_POST['codejercicio'], $_POST['desde'], $_POST['hasta'], FALSE, $_POST['codepigrafe']); } else { if (isset($_POST['codcuenta'])) { $this->libro_mayor_csv($_POST['codejercicio'], $_POST['desde'], $_POST['hasta'], FALSE, FALSE, $_POST['codcuenta']); } else { if (isset($_POST['codsubcuenta'])) { $this->libro_mayor_csv($_POST['codejercicio'], $_POST['desde'], $_POST['hasta'], FALSE, FALSE, FALSE, $_POST['codsubcuenta']); } else { $this->template = 'ajax/informe_libro_mayor'; $this->grupos = FALSE; $this->epigrafes = FALSE; $this->cuentas = FALSE; if ($_POST['filtro'] == 'grupo') { $ge = new grupo_epigrafes(); $this->grupos = $ge->all_from_ejercicio($_POST['codejercicio']); } else { if ($_POST['filtro'] == 'epigrafe') { $ep = new epigrafe(); $this->epigrafes = $ep->all_from_ejercicio($_POST['codejercicio']); } else { if ($_POST['filtro'] == 'cuenta') { $cuenta = new cuenta(); $this->cuentas = $cuenta->full_from_ejercicio($_POST['codejercicio']); } } } } } } } } } } } } } } } } }