function jsaGetDatosEmpresa($dependencia) { //verificar si existe en la BD $Emp = new cEmpresas($dependencia); $idpersona = $Emp->getClaveDePersona(); $Emp->init(); $telefono = $Emp->getTelefono(); $domicilio = $Emp->getDomicilio(); $razon = $Emp->getNombre(); $tab = new TinyAjaxBehavior(); $tab->add(TabSetValue::getBehavior('idtelefono', $telefono)); //$tab->add(TabSetValue::getBehavior('iddomiciliodeactividad', $domicilio)); $tab->add(TabSetValue::getBehavior('idrazonsocialtrabajo', $razon)); $xSoc = $Emp->getOPersona(); //$xSoc = new cSocio(); if ($xSoc == null) { } else { $xOBA = $xSoc->getOActividadEconomica(); if ($xOBA != null) { $idactividad = $xOBA->getClaveDeActividad(); $idsector = $xOBA->getClaveDeSector(); $idlocalidad = $xOBA->getClaveDeLocalidad(); $idmunicipio = $xOBA->getClaveDeMunicipio(); $identidadfederativa = $xOBA->getClaveDeEstado(); // idlocalidad idmunicipio identidadfederativa $tab->add(TabSetValue::getBehavior('idactividad', $idactividad)); //$tab->add(TabSetValue::getBehavior('idsectoreconomico', $idsector)); $tab->add(TabSetValue::getBehavior('idlocalidad', $idlocalidad)); $tab->add(TabSetValue::getBehavior('identidadfederativa', $identidadfederativa)); $tab->add(TabSetValue::getBehavior('idmunicipio', $idmunicipio)); $tab->add(TabSetValue::getBehavior('idnombreacceso', $xOBA->getCalle())); $tab->add(TabSetValue::getBehavior('idcodigopostal', $xOBA->getCodigoPostal())); } } //TODO: cargar estado y municiopios return $tab->getString(); }
/** * Funcion que Retorna una Ficha Descriptiva por el recibo * @param boolean $fieldset * @param string $trTool * @param string $wTable * @return string */ function getFicha($fieldset = false, $trTool = "", $extend = false) { $this->init(); $xLg = new cLang(); $personaAsoc = $this->getPersonaAsociada(); //$fichaEmpresa = ""; if ($this->mReciboIniciado == false) { $exoFicha = "<div class='error'>" . $xLg->get(MSG_NO_DATA) . "</div>"; } else { $xLg = new cLang(); $tool = $trTool; if ($extend == true) { $xUsr = new cSystemUser($this->getCodigoDeUsuario()); $xUsr->init(); $xSoc = new cSocio($this->getCodigoDeSocio()); $xSoc->init(); $tool .= "<tr><th class='izq'>" . $xLg->getT("TR.persona") . "</th>"; $tool .= "<td>" . $xSoc->getNombreCompleto() . "</td>"; $tool .= "<th class='izq'>" . $xLg->getT("TR.Documento") . "</th>"; $tool .= "<td>" . $this->getCodigoDeDocumento() . "</td>"; $tool .= "<tr><th class='izq'>" . $xLg->getT("TR.Elabora") . "</th>"; $tool .= "<td>" . $xUsr->getNombreCompleto() . "</td>"; if ($this->isDeEmpresa() == true) { $xEmp = new cEmpresas($personaAsoc); $xEmp->init(); $tool .= "<th class='izq'>" . $xLg->getT("TR.Empresa") . "</th>"; $tool .= "<td>" . $xEmp->getNombre() . "</td>"; } $tool .= "</tr>"; } if ($this->isDivisaExtranjera() == true) { $tool .= "<tr><th class='izq'>" . $xLg->getT("TR.Moneda") . "</th>"; $tool .= "<td>" . $this->getMoneda() . "</td>"; $tool .= "<th class='izq'>" . $xLg->getT("TR.Original") . "</th>"; $tool .= "<td>" . $this->getUnidadesOriginales() . "</td>"; $tool .= "</tr>"; } $xF = new cFecha(0); $exoFicha = "\n\t\t\t\t<table id=\"ficharecibo\">\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th class='izq'>Numero de Recibo</th>\n\t\t\t\t\t\t<td class='mny'>" . $this->mCodigoDeRecibo . "</td>\n\t\t\t\t\t\t<th class='izq'>Tipo de Recibo</th>\n\t\t\t\t\t\t<td>" . $this->mTipoDescripcion . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th class='izq'>Fecha de Recibo</th>\n\t\t\t\t\t\t<td>" . $xF->getFechaCorta($this->mFechaDeOperacion) . "</td>\n\t\t\t\t\t\t<th class='izq'>Recibo Fiscal</th>\n\t\t\t\t\t\t<td>" . $this->mReciboFiscal . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th class='izq'>Tipo de Pago</th>\n\t\t\t\t\t\t<td>" . strtoupper($this->mTipoDePago) . "</td>\n\t\t\t\t\t\t<th class='izq'>Total</th>\n\t\t\t\t\t\t<td>" . getFMoney($this->mTotalRecibo) . "</td>\n\n\t\t\t\t\t</tr>\n\n\t\t\t\t\t{$tool}\n\t\t\t\t</tbody>\n\t\t\t\t</table>"; if ($fieldset == true) { $exoFicha = "<fieldset>\n\t\t\t\t\t\t\t\t<legend> INFORMACIÓN DEL RECIBO </legend>\n\t\t\t\t\t\t\t\t{$exoFicha}\n\t\t\t\t\t\t\t</fieldset>"; } } return $exoFicha; }
$xTPer->init(); //if($xEmp->getEsPeriodoCerrado($periocidad, $periodo) == false){ $xHP->goToPageError(20101); } //$xHP->addStyle(""); $style = " body { margin-top:0; margin-bottom:0.5in; margin-left:0.5in; margin-right:0.5in; \n\t\tfont: 8pt \"Trebuchet MS\", Arial, Helvetica, sans-serif !important; font-stretch: extra-condensed;\ttext-transform: uppercase; }\n#ticket { height: 3.8in; } .npage { page-break-after: always;} .divisormedio { margin-bottom: 1.25in; border-style: dotted; border-color: transparent; } "; $xRPT->setToPrint(); $xRPT->addHeaderCNT("<style>{$style}</style>"); if ($out == OUT_DOC) { $xRPT->addHeaderCNT("<style>h1,h2,h3,h4 {text-align:center; font-size: 12pt; } body{ line-height: 10pt; }</style>"); } $xRPT->setOut($out); //filtrar domicilio -> socio -> credito -> letra $sql = $xL->getListadoDeCobranza($idnomina); $base_contrato = contrato(401, "texto_del_contrato"); $Dep = new cEmpresas($empresa); $Dep->init(); $nempresa = $Dep->getNombre(); $TCobros = 0; $rs = getRecordset($sql); $ppn = 1; $contar = 1; while ($rw = mysql_fetch_array($rs)) { //cargar datos de la parcialidad $numero_de_socio = $rw["persona"]; $cSoc = new cSocio($numero_de_socio); $cSoc->init(); $DSoc = $cSoc->getDatosInArray(); $ficha_socio = $cSoc->getFicha(); $numero_credito = $rw["credito"]; $xCred = new cCredito($numero_credito, $numero_de_socio); $xCred->init(); $DCred = $xCred->getDatosInArray();
$frecuencia = parametro("periocidad", SYS_TODAS); $producto = parametro("convenio", SYS_TODAS); $producto = parametro("producto", $producto); $empresa = parametro("empresa", SYS_TODAS); $out = parametro("out", SYS_DEFAULT); $FechaInicial = parametro("on", false); $FechaInicial = parametro("fecha-0", $FechaInicial); $FechaInicial = $FechaInicial == false ? FECHA_INICIO_OPERACIONES_SISTEMA : $xF->getFechaISO($FechaInicial); $FechaFinal = parametro("off", false); $FechaFinal = parametro("fecha-1", $FechaFinal); $FechaFinal = $FechaFinal == false ? fechasys() : $xF->getFechaISO($FechaFinal); $jsEvent = $out != OUT_EXCEL ? "initComponents()" : ""; $senders = getEmails($_REQUEST); $xEmp = new cEmpresas($empresa); $xEmp->init(); $nombre_empresa = $xEmp->getNombre(); $sql = $xL->getListadoDeIncidenciasAhorro($empresa); $titulo = ""; $archivo = ""; $xRPT = new cReportes($titulo); $xRPT->setFile($archivo); $xRPT->setOut($out); $xRPT->setSQL($sql); //$xRPT->setTitle($nombre_empresa. "-". $xHP->getTitle()); //============ Reporte $xT = new cTabla($sql, 2); $xT->setTipoSalida($out); $body = $xRPT->getEncabezado($nombre_empresa . "<br/>" . $xHP->getTitle()); $xRPT->setBodyMail($body); $xRPT->addContent($body); //$xT->setEventKey("jsGoPanel");
$ByMinistracion = ""; //$periodo = $periodo + $variacion; $observaciones = isset($_GET["o"]) ? $_GET["o"] : 0; $xLoc = new cLocal(); $xHP->addJsFile("../js/jquery/jquery.js"); $xHP->addJsFile("../js/general.js"); $xEmp = new cEmpresas($empresa); $xEmp->init(); $xTPer = new cPeriocidadDePago($periocidad); $xTPer->init(); if ($xEmp->getEsPeriodoCerrado($periocidad, $periodo) == false) { $xHP->goToPageError(20101, $out); } $periodo = $xF->semana(); $bheader = ""; $title = $xHP->getTitle() . "_" . $xEmp->getNombre() . "_" . $xTPer->getNombre() . "_{$periodo}"; $xPer = $xEmp->getOPeriodo(false, false, $idnomina); $xRPT->setTitle($title); $xRPT->setOut($out); $xRPT->setSenders($mails); $xRPT->setResponse(); //if($out == OUT_EXCEL ){ //$xRPT->setOut($out); //} else { // $xLoc->DomicilioLocalidad() . "," . $xLoc->DomicilioEstado() . "," . $xFMT = new cFormato($xEmp->getIDDeFormatoDeAviso()); $xFMT->setEmpresaPeriodo($empresa, $idnomina); $xFMT->setProcesarVars(); $xRPT->addContent($xFMT->get()); $xRPT->addContent("<hr />"); //}
/** * Muestra una Ficha de Informacion del Socio * * @param string $domicilio_extendido * @param string $trTool * @param string $marco * @return string */ function getFicha($domicilio_extendido = false, $marco = true, $trTool = "") { $eldom = ""; $idpersona = $this->mCodigo; $ccache = $domicilio_extendido == true ? EACP_CLAVE . ".ficha.{$idpersona}.ext" : EACP_CLAVE . ".ficha.{$idpersona}"; $this->mIDEnCache = $ccache; $xCache = new cCache(); $exoFicha = null; if ($xCache->isReady() == true) { $exoFicha = $xCache->get($ccache); } if ($exoFicha == null) { $DSocio = $this->getDatosInArray(); $DIngreso = $this->getDatosDeIngreso_InArray(); $empresa = $this->getClaveDeEmpresa(); $tingreso = $DIngreso["descripcion_tipoingreso"]; $xLng = new cLang(); $xT = new cTipos(); $xT->setForceMayus(); $xT->setToUTF8(); $mdom = $this->getDomicilio(99); $elnombre = $this->getNombreCompleto(); // $DSocio["apellidopaterno"] . " " . $DSocio["apellidomaterno"] . " " . $DSocio["nombrecompleto"]; if ($domicilio_extendido == false) { $eldom = strlen(trim($mdom)) < 6 ? "" : "<tr><th class='izq'>" . $xLng->getT("TR.Domicilio") . "</th><td colspan='3'>" . htmlentities($xT->cChar($mdom)) . "</td></tr>"; } else { if ($this->getODomicilio() != null) { $eldom = "<tr><td colspan='4'>" . $this->getODomicilio()->getFicha($this->getTelefonoPrincipal()) . "</td></tr>"; } } $rfc = $this->getRFC(); $curp = $this->getCURP(); $tool = $trTool; $wTable = ""; $tdExtra = ""; $tdCurp = "<th class='izq'>" . $xLng->getT("TR.CURP") . "</th><td>{$curp}</td>"; if ($this->getEsPersonaFisica() == false) { $tdCurp = ""; //OBTENER REPRESENTANTE LEGAL //22Octubre2013 $xRels = $this->getORepresentanteLegal(); if ($xRels != null) { $tdCurp = "<th class='izq'>" . $xRels->getNombreRelacion() . "</th><td>" . $xRels->getCodigoDePersona() . "-" . $xRels->getNombreDelRelacionado() . "</td>"; } } if ($this->mGrupoAsociado != DEFAULT_GRUPO) { $dG = new cGrupo($this->mGrupoAsociado); $grupo = $dG->getNombre(); $tdExtra .= "<tr><th class='izq'>" . $xLng->getT("TR.Grupo Solidario") . "</th><td colspan='3'>{$grupo}</td></tr>"; } if ($empresa != DEFAULT_EMPRESA) { $xEmp = new cEmpresas($empresa); $xEmp->init(); $Nempresa = cleanString($xEmp->getNombre()); $tdExtra .= "<tr><th class='izq'>" . $xLng->getT("TR.Empresa") . "</th><td colspan='3'>{$Nempresa}</td></tr>"; } if (getEsModuloMostrado(USUARIO_TIPO_OFICIAL_AML) == true) { $xDPais = new cDomiciliosPaises($this->getPaisDeOrigen()); $xDPais->init(); $NPais = $xDPais->getNombre(); $xRiesgo = new cAml_risk_levels(); $xRiesgo->setData($xRiesgo->query()->initByID($this->getNivelDeRiesgo())); $tdExtra .= "<tr><th class='izq'>" . $xLng->getT("TR.Riesgo de Persona") . "</th><td>" . strtoupper($xRiesgo->nombre_del_nivel()->v()) . "</td>\n\t\t\t\t\t\t<th class='izq'>" . $xLng->getT("TR.pais") . "</th><td colspan='3'>{$NPais}</td></tr>"; } $exoFicha = "\n\t\t\t<table {$wTable} >\n\t\t\t<tbody>\n\t\t\t\t<tr>\n\t\t\t\t\t<th class='izq'>" . $xLng->getT("TR.Codigo") . "</th>\n\t\t\t\t\t<th>" . $this->mCodigo . "</th>\n\t\t\t\t\t<th class='izq'>" . $xLng->getT("TR.Nombre_completo") . "</th>\n\t\t\t\t\t<td>{$elnombre}</td>\n\t\t\t\t</tr>\n\t\t\t\t{$eldom}\n\t\t\t\t<tr>\n\t\t\t\t\t<th class='izq'>" . $xLng->getT("TR.RFC") . "</th>\n\t\t\t\t\t<td>{$rfc}</td>\n\t\t\t\t\t{$tdCurp}\n\t\t\t\t</tr>\n\t\t\t\t{$tdExtra}\n\t\t\t</tbody>\n\t\t\t<tfoot>{$tool}</tfoot>\n\t\t\t</table>"; if ($marco == true) { $exoFicha = "<fieldset><legend>| " . $xLng->getT("TR.Ficha de Informacion") . " |</legend>\n\t\t\t\t\t\t{$exoFicha}\n\t\t\t\t\t\t</fieldset>"; } if ($xCache->isReady() == true) { $xCache->set($ccache, $exoFicha); } } return $exoFicha; }
function setCredito($credito) { $this->mDocumento = $credito; $xFDE = new cFecha(); $xLng = new cLang(); $cCred = new cCredito($credito); $cCred->init(); $idsolicitud = $credito; $DCred = $cCred->getDatosDeCredito(); $DProd = $cCred->getOProductoDeCredito(); $OOParam = new cProductoDeCreditoOtrosDatosCatalogo(); $numero_de_socio = $cCred->getClaveDePersona(); $this->mPersona = $numero_de_socio; $cSoc = new cSocio($numero_de_socio); $cSoc->init(); $svar_info_cred = ""; $tblInfCred = new cFicha(iDE_CREDITO, $idsolicitud); $this->setPersona($numero_de_socio); $svar_info_cred = $tblInfCred->show(true); //Lista de Beneficiados $lst_beneficiados = ""; $this->getListadoDeAvales($idsolicitud); $SQLCBen = "SELECT `socios_relacionestipos`.`descripcion_relacionestipos` AS 'relacion', `socios_relaciones`.`nombres`,\t`socios_relaciones`.`apellido_paterno`,\t`socios_relaciones`.`apellido_materno`,\n\t\t\t`socios_consanguinidad`.`descripcion_consanguinidad` AS 'consaguinidad'\n\t\t\tFROM `socios_relaciones` `socios_relaciones` INNER JOIN `socios_consanguinidad` `socios_consanguinidad` ON `socios_relaciones`.`consanguinidad` = `socios_consanguinidad`.`idsocios_consanguinidad`\n\t\t\tINNER JOIN `socios_relacionestipos` `socios_relacionestipos` ON `socios_relaciones`.`tipo_relacion` = `socios_relacionestipos`.`idsocios_relacionestipos`\n\t\t\tWHERE (`socios_relaciones`.`socio_relacionado` ={$numero_de_socio}) AND (`socios_relaciones`.`credito_relacionado` ={$idsolicitud})\tAND\t(`socios_relaciones`.`tipo_relacion`=11)"; $tblCBen = new cTabla($SQLCBen); $lst_beneficiados = $tblCBen->Show(); $firmas_de_avales = $this->mFirmasAvales; // $cSoc->getCoResponsables("firmas", "avales", $idsolicitud ); //Plan de Pago segun SQL $splan_pagos = $cCred->getPlanDePago(OUT_HTML, true, true); //================================================================================== $fichas_de_avales = $this->mFichasAvales; //$cCred->getAvales_InText(); $fecha_larga_de_documento = $xFDE->getFechaLarga($cCred->getFechaDeMinistracion()); $fichas_de_respsolidarios = ""; //TODO: FALTA //Otros Datos $monto_ministrado = $cCred->getMontoAutorizado(); $tasa_interes_mensual_ordinario = round($cCred->getTasaDeInteres() / 12 * 100, 2); $tasa_interes_anual_ordinario = $cCred->getTasaDeInteres(); $fecha_de_vencimiento = $cCred->getFechaDeVencimiento(); $fecha_de_ministracion = $cCred->getFechaDeMinistracion(); $tasa_garantia_liquida = $DCred["porciento_garantia_liquida"] * 100; $monto_garantia_liquida = $monto_ministrado * $tasa_garantia_liquida; $tasa_interes_mensual_moratorio = round($cCred->getTasaDeMora() / 12 * 100, 2); $dias_del_credito = $cCred->getDiasAutorizados(); $meses_del_credito = sprintf("%02d", ceil($dias_del_credito / 30.416666666666668)); $periocidad = $cCred->getPeriocidadDePago(); //Tipo de Credito por SQL $SQLTCred = "SELECT * FROM creditos_modalidades WHERE idcreditos_modalidades=" . $DCred["tipo_credito"]; $tipo_de_credito = mifila($SQLTCred, "descripcion_modalidades"); //Datos del Grupo Solidarios por SQL $SQLGAsoc = "SELECT * FROM socios_grupossolidarios WHERE idsocios_grupossolidarios=" . $DCred["grupo_asociado"]; $InfoGrupo = obten_filas($SQLGAsoc); $nombre_rep_social = $InfoGrupo["representante_nombrecompleto"]; $codigo_rep_social = $InfoGrupo["representante_numerosocio"]; $nombre_voc_vigila = $InfoGrupo["vocalvigilancia_nombrecompleto"]; $nombre_del_grupo = $InfoGrupo["nombre_gruposolidario"]; $domicilio_rep_social = domicilio($codigo_rep_social); $tabla_asociadas = ""; $lista_asociadas = ""; $tasa_de_cat = $cCred->getCAT(); $DPeriocidad = new cPeriocidadDePago($cCred->getPeriocidadDePago()); $DPeriocidad->init(); $monto_con_interes = ""; $monto_con_interes_letras = ""; if ($DCred["grupo_asociado"] != DEFAULT_GRUPO) { $SQL_get_grupo = "SELECT `socios_general`.`codigo`, CONCAT(`socios_general`.`nombrecompleto`, ' ', `socios_general`.`apellidopaterno`, ' ', `socios_general`.`apellidomaterno`) AS 'nombre_completo'\n\t\t\t\t\t\t\t\t\tFROM `socios_general` `socios_general` WHERE (`socios_general`.`grupo_solidario` =" . $DCred["grupo_asociado"] . ")"; $rsg = getRecordset($SQL_get_grupo); while ($rwt = mysql_fetch_array($rsg)) { $lista_asociadas .= ", " . $rwt["nombre_completo"]; } } if (EACP_INCLUDE_INTERES_IN_PAGARE == true) { if ($periocidad == CREDITO_TIPO_PERIOCIDAD_FINAL_DE_PLAZO) { $monto_con_interes = $cCred->getMontoAutorizado() + $cCred->getInteresDiariogenerado() * $cCred->getDiasAutorizados(); } else { $sqlInt = "SELECT `operaciones_mvtos`.`docto_afectado`, `operaciones_mvtos`.`tipo_operacion`, COUNT(`operaciones_mvtos`.`idoperaciones_mvtos`) AS `mvtos`,\n\t\t\t\t\tSUM(`operaciones_mvtos`.`afectacion_real` *\t`eacp_config_bases_de_integracion_miembros`.`afectacion`) AS 'monto'\n\t\t\t\t\tFROM `operaciones_mvtos` `operaciones_mvtos` INNER JOIN `eacp_config_bases_de_integracion_miembros`\t`eacp_config_bases_de_integracion_miembros`\n\t\t\t\t\tON `operaciones_mvtos`.`tipo_operacion` = `eacp_config_bases_de_integracion_miembros`.`miembro` WHERE (`operaciones_mvtos`.`docto_afectado` = {$idsolicitud})\n\t\t\t\t\tAND (`eacp_config_bases_de_integracion_miembros`.`codigo_de_base` = 2601)\n\t\t\t\t\tGROUP BY `operaciones_mvtos`.`docto_afectado`, `eacp_config_bases_de_integracion_miembros`.`codigo_de_base`\n\t\t\t\t\tORDER BY `eacp_config_bases_de_integracion_miembros`.`codigo_de_base`, `operaciones_mvtos`.`fecha_afectacion`, `operaciones_mvtos`.`socio_afectado`\t"; $xF = obten_filas($sqlInt); $monto_con_interes = $xF["monto"]; } $monto_con_interes_letras = convertirletras($monto_con_interes); $monto_con_interes = getFMoney($monto_con_interes); } $this->mArr["variable_informacion_del_credito"] = $cCred->getFicha(); //"variable_lista_de_beneficiados" => $lst_beneficiados, $this->mArr["variable_tipo_de_credito"] = $tipo_de_credito; $this->mArr["variable_monto2_ministrado_con_intereses_en_letras"] = $monto_con_interes_letras; $this->mArr["variable_monto2_ministrado_con_intereses"] = $monto_con_interes; $this->mArr["variable_monto_ministrado"] = getFMoney($monto_ministrado); $this->mArr["variable_tasa_mensual_de_interes_ordinario"] = $tasa_interes_mensual_ordinario; $this->mArr["variable_credito_fecha_de_vencimiento"] = $xFDE->getFechaMediana($fecha_de_vencimiento); $this->mArr["variable_monto_garantia_liquida"] = getFMoney($monto_garantia_liquida); $this->mArr["variable_tasa_mensual_de_interes_moratorio"] = $tasa_interes_mensual_moratorio . ""; $this->mArr["variable_tasa_de_garantia_liquida"] = $tasa_garantia_liquida . ""; $this->mArr["variable_plan_de_pagos"] = $splan_pagos; $this->mArr["variable_docto_fecha_larga_actual"] = $fecha_larga_de_documento; $this->mArr["variable_nombre_de_la_representante_social"] = $nombre_rep_social; $this->mArr["variable_listado_de_integrantes"] = $lista_asociadas; $this->mArr["variable_nombre_de_la_vocal_de_vigilancia"] = $nombre_voc_vigila; $this->mArr["variable_nombre_del_grupo_solidario"] = $nombre_del_grupo; $this->mArr["variable_domicilio_de_la_representante_social"] = $domicilio_rep_social; $this->mArr["variable_meses_de_duracion_del_credito"] = $meses_del_credito; $this->mArr["variable_en_letras_monto_ministrado"] = convertirletras($monto_ministrado); $this->mArr["variable_credito_fecha_de_ministracion"] = $xFDE->getFechaCorta($fecha_de_ministracion); $this->mArr["variable_tasa_cat"] = $tasa_de_cat; $this->mArr["variable_credito_periocidad"] = $DPeriocidad->getNombre(); $this->mArr["variable_credito_monto_parcialidad_fija"] = getFMoney($cCred->getMontoDeParcialidad()); $this->mArr["variable_credito_numero_de_pagos"] = $cCred->getPagosAutorizados(); $this->mArr["variable_tasa_anual_de_interes_moratorio"] = $cCred->getTasaDeInteres() * 2 * 100 . "%"; $this->mArr["variable_tasa_anual_de_interes_ordinario"] = $cCred->getTasaDeInteres() * 100 . "%"; //sobreescribir datos de la empresa $xEmp = new cEmpresas($cCred->getClaveDeEmpresa()); $xEmp->init(); $this->mArr["variable_nombre_de_la_empresa"] = $xEmp->getNombre(); $this->mArr["variable_nombre_de_empresa"] = $xEmp->getNombre(); $this->mArr["variable_fecha_de_primer_pago"] = $xFDE->getFechaMediana($cCred->getFechaPrimeraParc()); $this->mArr["variable_avales_en_fichas"] = $fichas_de_avales; $this->mArr["variable_firmas_de_avales"] = $firmas_de_avales; $this->mArr["variable_avales_autorizacion_central_riesgo"] = $this->mFichaRiesgoAv; $this->mArr["variable_fecha_ultimo_abono"] = $xFDE->getFechaLarga($cCred->getFechaUltimaParc()); $this->mArr["variable_fecha_de_primer_abono"] = $xFDE->getFechaMediana($cCred->getFechaPrimeraParc()); //$this->mArr["variable_fecha_de_primer_abono"] = $this->mArr["variable_en_letras_tasa_mensual_de_interes_moratorio"] = convertirletras_porcentaje($tasa_interes_mensual_moratorio); $this->mArr["variable_lista_de_avales_con_domicilio"] = $this->mLAvalesConDir; /*variable_aval1_nombre_completo variable_aval1_domicilio_completo variable_aval1_domicilio_localidad variable_aval1_domicilio_municipio*/ //Cargar Avales $this->mArr["variable_listado_de_garantias"] = $this->getListadoDeGarantias(); //$this->mArr["variable_modalidad_de_credito"] = $cCred->getOEstado() $this->mArr["variable_estado_de_credito"] = $cCred->getOEstado()->descripcion_estatus()->v(OUT_TXT); //$this->mArr["variable_credito_num_de_pago_actual"] = $cCred->getPeriodoActual(); $this->mArr["variable_contrato_id_legal"] = $DProd->getOtrosParametros($OOParam->CONTRATO_ID_LEGAL); $this->mArr["variable_producto_comision_apertura"] = $DProd->getOtrosParametros($OOParam->TASA_DE_COMISION_AP); }