/** * Establecer las variables que contienen la información de la cuenta en una fecha concreta. * * @return bool */ private function setAccountDataHistory() { try { $this->setAccount(new AccountHistory()); $this->_account->setAccountId($this->getId()); $this->_account->setAccountParentId(\SP\Session::getAccountParentId()); $this->view->assign('accountId', $this->getId()); $this->view->assign('accountData', $this->getAccount()->getAccountData()); $this->view->assign('gotData', true); $this->setAccountDetails(); $this->setGotData(true); Session::setLastAcountId(\SP\Session::getAccountParentId()); } catch (SPException $e) { return false; } return true; }