$ClaveCuenta = false;
             //Iniciar el Socio
             //$msg .= "$iReg\t$socio\tERROR_SOCIO\t$socio -- $importe -- $fechaApertura -- $plazo -- $tasa -- $observaciones\r\n";
             $xCL = new cCajaLocal(99);
             if ($xCL->getExistenciaSocio($socio) <= 0) {
                 $msg .= "{$iReg}\t{$socio}\tERROR_SOCIO\tLa Linea({$iReg}) no se leyo por que no existe el socio({$bufer})\r\n";
             } else {
                 $xInv = new cCuentaInversionPlazoFijo(false, $socio, $plazo, $tasa, $fechaApertura);
                 //Agrega la Cuenta
                 $ClaveCuenta = $xInv->setNuevaCuenta(99, 2, $socio, $observaciones, DEFAULT_CREDITO, "", "", DEFAULT_GRUPO, $fechaApertura, CAPTACION_TIPO_PLAZO, 99, $plazo, $tasa);
                 if ($ClaveCuenta != false) {
                     $msg .= "{$iReg}\t{$socio}\tCUENTA\tSe Agrego Exitosamente la cuenta {$ClaveCuenta}\r\n";
                     if ($importe > 0) {
                         $xInv->init();
                         $xInv->setFechaDeOperacion($fechaApertura);
                         $xInv->setDiasInvertidos($plazo);
                         $RDeposito = $xInv->setDeposito($importe, DEFAULT_CHEQUE, DEFAULT_TIPO_PAGO, DEFAULT_RECIBO_FISCAL, $observaciones, DEFAULT_GRUPO, $fechaApertura);
                         $msg .= "{$iReg}\t{$socio}\tRECIBO_DEPOSITO\tSe Efectua un Deposito de {$importe} al Recibo {$RDeposito}\r\n";
                         $xInv->init();
                         $recibo_de_reinversion = $xInv->setReinversion($fechaApertura, true, $tasa, $plazo);
                         $msg .= "{$iReg}\t{$socio}\tRECIBO_INVERSION\tSe Efectua una Inversion de {$importe} al Recibo {$recibo_de_reinversion}\r\n";
                         $msg .= $xInv->getMessages("txt");
                     }
                 } else {
                     $msg .= "{$iReg}\t{$socio}\tERROR\tSe Fallo al Agregar la Cuenta\r\n";
                 }
             }
         }
         $iReg++;
     }
 }