if ($sucess == true) { if ($tipoOrigen == CAPTACION_TIPO_PLAZO) { $xCOrigen = new cCuentaInversionPlazoFijo($cuentaOrigen, $socio); } else { $xCOrigen = new cCuentaALaVista($cuentaOrigen, $socio); } $xCOrigen->init(); // if ($tipoDestino == CAPTACION_TIPO_PLAZO) { $xCDestino = new cCuentaInversionPlazoFijo($cuentaDestino, $socio); } else { $xCDestino = new cCuentaALaVista($cuentaDestino, $socio); } $xCDestino->init(); $msg .= $xCOrigen->setTraspaso($cuentaDestino, $tipoDestino, $observaciones, $monto); $ReciboTrasp = $xCOrigen->getReciboDeOperacion(); $msg .= $xCOrigen->getMessages(); $msg .= $xCDestino->getMessages(); //Imprime la Ficha del socio echo $xSoc->getFicha(); //$cCta->init(); //Imprime la Ficha del Documento $xCDestino->init(); $fd = $xCDestino->getFicha(true); $xCOrigen->init(); $fo = $xCOrigen->getFicha(true); echo "<fieldset><legend>DATOS DEL TRAPASO</legend>\n\t\t\t\tCuenta de Origen:<br />\n\t\t\t\t{$fo}\t\n\t\tCuenta de Destino:<br />\n\t\t{$fd}\n\t\t</fieldset>"; $mRec = new cFicha(iDE_RECIBO, $ReciboTrasp); $mRec->setTableWidth(); $mRec->show(); // *****************************************************************************