function jsaGetValidacion($persona, $producto, $origen) { $html = ""; $xPd = new cCaptacionProducto($producto); if ($xPd->getClase() == CAPTACION_TIPO_PLAZO) { $html .= $xPd->getListaDeDias(); } if ($xPd->getDestinoInteres() == CAPTACION_DESTINO_CTA_INTERES) { $xTxt2 = new cHText(); $xSoc = new cSocio($persona); $xSoc->init(); $html .= $xTxt2->getDeCuentaCaptacionInteres("", $xSoc->getCuentaDeCaptacionPrimaria(CAPTACION_TIPO_VISTA, CAPTACION_PRODUCTO_INTERESES)); } // return $html; }
$persona = parametro("idsocio", $persona, MQL_INT); $credito = parametro("credito", DEFAULT_CREDITO, MQL_INT); $credito = parametro("idsolicitud", $credito, MQL_INT); $credito = parametro("solicitud", $credito, MQL_INT); $cuenta = parametro("cuenta", DEFAULT_CUENTA_CORRIENTE, MQL_INT); $cuenta = parametro("idcuenta", $cuenta, MQL_INT); $jscallback = parametro("callback"); $tiny = parametro("tiny"); $form = parametro("form"); $action = parametro("action", SYS_NINGUNO); $url_recibo_inversion = ""; $recibo_de_reinversion = false; $messages = ""; $jxc = new TinyAjax(); $xF = new cFecha(); $xPdto = new cCaptacionProducto(); function jsaGetDatosCuenta($cuenta, $socio, $dias) { $xInv = new cCuentaInversionPlazoFijo($cuenta, $socio); $tasa = $xInv->getTasaAplicable($dias) * 100; $xSoc = new cSocio($socio); $xSoc->init(); $cuentainteres = $xSoc->getCuentaDeCaptacionPrimaria(CAPTACION_TIPO_VISTA, CAPTACION_PRODUCTO_INTERESES); $tab = new TinyAjaxBehavior(); $tab->add(TabSetValue::getBehavior("idtasa", $tasa)); $tab->add(TabSetValue::getBehavior("idcuentainteres", $cuentainteres)); return $tab->getString(); } $jxc->exportFunction('jsaGetDatosCuenta', array('idcuentaactual', "idsocioactual", "iddias")); $jxc->process(); echo $xHP->getHeader();