Beispiel #1
0
        $smarty->assign('invcrt', $invcrt);
        $smarty->assign('invCreate', $invCreate);
        $smarty->assign('poCreate', $poCreate);
        $smarty->assign('doimportpo', $doimportpo);
        $smarty->assign('doimportinv', $doimportinv);
        break;
    case 'orgadmin':
        $usersec = 'user';
        $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'] = 'OA';
        break;
}
$orgid = "";
if ($sess_usertype == 'orguser') {
    $orgUsrObj->setiUserID($sess_id);
    $udts = $orgUsrObj->select($sess_id);
    $usrtype = $orgUsrObj->geteUserType();
    $orgid = $curORGID;
    // $orgUsrObj->getiOrganizationID();
    // $reqVerification   = $opf[0]['eReqVerification'];
    /*$encInvoice = $opf[0]['eSecureImportExportInvoice'];
      if($encInvoice == 'Yes')
          $encInvoice='y';
      $encPO = $opf[0]['eSecureImportExportPO'];
      if ($encPO == 'Yes')
          $encPO='y';*/
    if ($usrtype == 'Admin') {
        $sess_usertype = 'orgadmin';
        $usersec = 'organization';
        $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'] = 'OA';
    }
}