$reciboIDE = 0; // $actload = ""; $Fecha = parametro("idfecha-0", false); $Fecha = $Fecha == false ? fechasys() : $xF->getFechaISO($Fecha); $idsocio = parametro("idsocio", false, MQL_INT); //$xT->cInt($_POST["idsocio"]); $detalles = parametro("idobservaciones", ""); $monto = parametro("idmonto", 0, MQL_FLOAT); $cheque = parametro("cheque", DEFAULT_CHEQUE); $comopago = parametro("ctipo_pago", DEFAULT_TIPO_PAGO, MQL_RAW); $folio_fiscal = parametro("foliofiscal", DEFAULT_RECIBO_FISCAL); $msg = parametro(SYS_MSG); $action = parametro("action", SYS_NINGUNO); $xCaja = new cCaja(); if ($xCaja->getEstatus() == TESORERIA_CAJA_CERRADA) { header("location:../404.php?i=200"); } if (isset($iddocto)) { $actload = " onload='jsImprimirRecibo();' "; } $jxc = new TinyAjax(); function jsaGetIDE($socio, $monto, $tipo_de_pago) { $xSoc = new cSocio($socio); $xSoc->init(); $x = $xSoc->getIDExPagarByPeriodo(false, $monto, $tipo_de_pago); $tab = new TinyAjaxBehavior(); $tab->add(TabSetValue::getBehavior("idide", $x)); return $tab->getString(); }
// Numero de Cajero $cajero = parametro("cajero", $cajero, MQL_RAW); $out = parametro("out", OUT_HTML, MQL_RAW); $mails = getEmails($_REQUEST); $ByCajero = ""; $ByAll = ""; $xCaja = new cCaja(); $xCaja->initByFechaUsuario($fecha_final, $cajero); if (isset($_REQUEST["fechaMX"])) { $fecha_inicial = $xF->getFechaISO($_REQUEST["fechaMX"]); $fecha_final = $xF->getFechaISO($_REQUEST["fechaMX"]); } if (count($mails) <= 0) { if (MODULO_CAJA_ACTIVADO == true) { if ($xF->getInt($fecha_final) > $xF->getInt(fechasys())) { if ($xCaja->getEstatus() == TESORERIA_CAJA_ABIERTA) { $xHP->goToPageError(70102); } } } } $xUsr = new cSystemUser($cajero); $xUsr->init(); $nombre = $xUsr->getNombreCompleto(); $ByDependencia = (isset($_GET["dependencia"]) and $_GET["dependencia"] != SYS_TODAS) ? " AND `socios`.`iddependencia`=" . $_GET["dependencia"] : ""; $xRPT = new cReportes(); $title = $xHP->getTitle(); $xRPT->setTitle($title); $xRPT->setOut($out); $xRPT->setSenders($mails); $bheader = $xRPT->getHInicial($xHP->getTitle(), $fecha_inicial, $fecha_final, $nombre);