Esempio n. 1
0
 private function getAccountTypeTabValue()
 {
     $systemType = $this->account->getSystemType();
     $type = $this->account->getTypeName();
     $result = '';
     switch ($systemType) {
         case SystemAccount::TYPE_PERSONAL_INVESTMENT:
             $result = 'individual';
             break;
         case SystemAccount::TYPE_JOINT_INVESTMENT:
             $result = 'joint';
             break;
         case SystemAccount::TYPE_ROTH_IRA:
             $result = 'roth_ira';
             break;
         case SystemAccount::TYPE_TRADITIONAL_IRA:
             if ($type == 'SEP IRA') {
                 $result = 'sep_ira';
             } elseif ($type == 'SIMPLE IRA') {
                 $result = 'simple_ira';
             } else {
                 $result = 'traditional_or_rollover_ira';
             }
             break;
         case SystemAccount::TYPE_RETIREMENT:
             $result = 'qualified_retirement_plan';
             break;
     }
     return $result;
 }
Esempio n. 2
0
 /**
  * Get type of account tab value
  *
  * @param ClientAccount $account
  * @return string
  */
 private function getAccountTypeTabValue(ClientAccount $account)
 {
     $systemType = $account->getSystemType();
     $type = $account->getTypeName();
     switch ($systemType) {
         case SystemAccount::TYPE_ROTH_IRA:
             $result = 'roth_ira';
             break;
         case SystemAccount::TYPE_TRADITIONAL_IRA:
             if ($type == 'SEP IRA') {
                 $result = 'sep_ira';
             } elseif ($type == 'SIMPLE IRA') {
                 $result = 'simple_ira';
             } else {
                 $result = 'traditional_ira';
             }
             break;
         default:
             $result = '';
             break;
     }
     return $result;
 }