Ejemplo n.º 1
0
 public function init()
 {
     $this->view->pageTitle = 'Fee';
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
     //         if (($this->view->globalvalue[0]['id'] == 0)) {
     //              $this->_redirect('index/logout');
     //         }
     $this->view->adm = new App_Model_Adm();
     $ledger = new Ledger_Model_Ledger();
     $ledger1 = $ledger->fetchAllLedger1();
     $flag = 0;
     $date = date("y/m/d H:i:s");
     foreach ($ledger1 as $ledger2) {
         if ($ledger2->header == 'Fee') {
             $flag = 1;
         }
     }
     if ($flag == 0) {
         $glInsert = $ledger->insertGlcode(array('id' => '', 'glcode' => 'I01000', 'ledgertype_id' => 1, 'header' => 'Fee', 'description' => 'Fee in income', 'created_date' => $date, 'created_by' => 1));
     }
 }
Ejemplo n.º 2
0
 public function init()
 {
     $this->view->pageTitle = 'Office meetings';
     /* Initialize action controller here */
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $globalsession = new App_Model_Users();
     $loginname = $globalsession->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
     $this->view->adm = new App_Model_Adm();
     $this->view->dateconvert = new App_Model_dateConvertor();
     $test = new DH_ClassInfo(APPLICATION_PATH . '/modules/meetingindex/controllers/');
     $module = $test->getControllerClassNames();
     $modulename = explode("_", $module[0]);
     $this->view->modulename = strtolower($modulename[0]);
 }
Ejemplo n.º 3
0
 public function init()
 {
     $this->view->pageTitle = $this->view->translate("Meeting Book");
     $this->view->title = $this->view->translate('Reports');
     $this->view->type = $this->view->translate("financialReports");
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
     $this->view->adm = new App_Model_Adm();
     $this->view->dateconvert = new App_Model_dateConvertor();
     $test = new DH_ClassInfo(APPLICATION_PATH . '/modules/meetingbookindex/controllers/');
     $module = $test->getControllerClassNames();
     $modulename = explode("_", $module[0]);
     $this->view->modulename = strtolower($modulename[0]);
     //date format instance
     $this->view->dateconvertor = new App_Model_dateConvertor();
 }
Ejemplo n.º 4
0
 public function init()
 {
     $this->view->pageTitle = $this->view->translate('Family Information');
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
     $model = new Familydefault_Model_familydefault();
     $officetype = $model->getofficehierarchy();
     $this->view->lastlevelid = $officetype[0]['hierarchyid'] - 1;
     $this->view->adm = new App_Model_Adm();
     $this->view->commonmodel = $individualcommon = new Familycommonview_Model_familycommonview();
     //get the module id and submodule id
     $module = $individualcommon->getmodule('Office');
     foreach ($module as $module_id) {
     }
     $this->view->mod_id = $module_id['parent'];
     $this->view->sub_id = $module_id['module_id'];
 }
Ejemplo n.º 5
0
 public function init()
 {
     $this->view->pageTitle = 'Category';
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
     $this->view->adm = new App_Model_Adm();
     $dbobj = new Category_Model_Category();
     $categoryvalues = $dbobj->getAllCategory();
     $name = array('Savings', 'Loan');
     $desc = array('For savings products', 'For loan products');
     if (empty($categoryvalues)) {
         for ($i = 0; $i <= 1; $i++) {
             $dbobj->insertbaseCategory(array('id' => '', 'name' => $name[$i], 'description' => $desc[$i], 'created_by' => 1, 'created_date' => date("Y-m-d")));
         }
     }
 }
Ejemplo n.º 6
0
 public function init()
 {
     $this->view->title = "Savings";
     $this->view->pageTitle = "Member saving details";
     $this->view->type = 'savings';
     $this->view->savingsModel = new Savingsdeposit_Model_Savingsdeposit();
     $this->view->cl = new App_Model_dateConvertor();
     $this->view->adm = new App_Model_Adm();
     $this->view->psdetails = new Psdetails_Model_Savingsdeposit();
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $log = new App_Model_Users();
     $loginname = $log->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
 }
Ejemplo n.º 7
0
 public function init()
 {
     $this->view->pageTitle = "Group";
     $test = new DH_ClassInfo(APPLICATION_PATH . '/modules/groupm/controllers/');
     // create instance to get controller name
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
     $this->view->adm = new App_Model_Adm();
     // create instance for common adm model page
     $module = $test->getControllerClassNames();
     $modulename = explode("_", $module[0]);
     $this->view->modulename = strtolower($modulename[0]);
     $this->view->dbobj = new Groupmdefault_Model_Groupdefault();
 }
Ejemplo n.º 8
0
 public function init()
 {
     $this->view->pageTitle = $this->view->translate('Membership');
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
     $this->view->id = $subId = $this->_getParam('id');
     $this->view->subId = $subId = $this->_getParam('subId');
     $this->view->modId = $modId = $this->_getParam('modId');
     $addressmodel = new Familycommonview_Model_familycommonview();
     $module_name = $addressmodel->getmodule($subId);
     foreach ($module_name as $module_view) {
         $address = $module_view['module_description'];
     }
     $this->view->pageTitle = 'Individual crop details';
     $this->view->adm = new App_Model_Adm();
 }
Ejemplo n.º 9
0
 public function init()
 {
     $this->view->pageTitle = $this->view->translate("Funder");
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
     $this->view->adm = new App_Model_Adm();
     $this->view->funder = new Fundercommonview_Model_fundercommon();
     $module = $this->view->funder->getmodule('Funder');
     foreach ($module as $module_id) {
     }
     $this->view->mod_id = $module_id['parent'];
     $this->view->sub_id = $module_id['module_id'];
 }
Ejemplo n.º 10
0
 public function init()
 {
     $this->view->pageTitle = "Loans";
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
     $this->view->adm = new App_Model_Adm();
     $this->view->dateconvert = new App_Model_dateConvertor();
     $dbobj = new Loans_Model_Loan();
     $glcodevalues = $dbobj->getAllGlcode();
     $name = array('loan');
     $saving = "not exist";
     foreach ($glcodevalues as $glcodes) {
         if (in_array($glcodes->header, $name)) {
             $saving = "exist";
         }
     }
     $desc = array('for loan');
     if ($saving == "not exist") {
         for ($i = 0; $i < 1; $i++) {
             $Ledgertypeid = $this->view->adm->getsingleRecord('ourbank_master_ledgertypes', 'id', 'name', 'Assets');
             // Get id for Liability
             $generateGl = $dbobj->generateGlCode($Ledgertypeid);
             // get Maximum value for particular ledger
             $glCode = $generateGl->id;
             $result = $this->view->adm->getRecord('ourbank_master_ledgertypes', 'id', $Ledgertypeid);
             // Get id for Liability
             foreach ($result as $result1) {
                 $headerCon = substr($result1['name'], 0, 1);
             }
             if ($glCode) {
                 $fetchGlcode = $this->view->adm->getsingleRecord('ourbank_glcode', 'glcode', 'id', $glCode);
                 // Get glcode
                 $glCode = substr($fetchGlcode, 1, 2);
                 $glcodeId = str_pad($headerCon . str_pad($glCode + 1, 2, 0, STR_PAD_LEFT), 8 - strlen($glCode), "0");
                 $glcode = $glcodeId;
             } else {
                 $glcodeId = str_pad($headerCon . "01", 6, "0");
                 $glcode = $glcodeId;
             }
             $dbobj->insertGlcode(array('id' => '', 'glcode' => $glcode, 'ledgertype_id' => $Ledgertypeid, 'header' => $name[$i], 'description' => $desc[$i], 'created_date' => date("Y-m-d"), 'created_by' => $this->view->createdby));
         }
     }
 }
Ejemplo n.º 11
0
 public function indexAction()
 {
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->primaryid = $loginname['id'];
         $this->view->id = $loginname['id'];
         $this->view->username = $loginname['username'];
         $this->view->primaryrole = $loginname['name'];
     }
 }
Ejemplo n.º 12
0
 public function init()
 {
     $this->view->pageTitle = 'Holiday';
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
 }
Ejemplo n.º 13
0
 public function init()
 {
     $this->view->pageTitle = 'Community Meetings';
     /* Initialize action controller here */
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $globalsession = new App_Model_Users();
     $loginname = $globalsession->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
 }
Ejemplo n.º 14
0
 function init()
 {
     $this->view->pageTitle = $this->view->translate('Loan Supplementary');
     $this->view->title = $this->view->translate('Reports');
     $this->view->type = "financialReports";
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
 }
Ejemplo n.º 15
0
 public function init()
 {
     //it is create session and implement ACL concept...
     $this->view->pageTitle = $this->view->translate('Livestock');
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
     $this->view->adm = new App_Model_Adm();
 }
Ejemplo n.º 16
0
 public function init()
 {
     $this->view->pageTitle = $this->view->translate("GP & Koota Wise Poverty & NREGS Reports");
     $this->view->tilte = $this->view->translate('Reports');
     $this->view->type = "fieldReports";
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
     $this->view->adm = new App_Model_Adm();
 }
Ejemplo n.º 17
0
 public function init()
 {
     $this->view->pageTitle = $this->view->translate('Individual');
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
     //getting module name and change the side bar dynamically
     $this->view->adm = new App_Model_Adm();
     $this->view->db = new Individual_Model_Individual();
 }
Ejemplo n.º 18
0
 public function init()
 {
     $this->view->pageTitle = 'Receipt and payment';
     $this->view->title = "Transaction";
     $this->view->adm = new App_Model_Adm();
     $this->view->dateconvertor = new App_Model_dateConvertor();
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
 }
Ejemplo n.º 19
0
 function init()
 {
     $this->view->pageTitle = 'Portfolio at risk';
     $this->view->type = "operationalReport";
     $this->view->dateconvert = new App_Model_dateConvertor();
     $this->view->adm = new App_Model_Adm();
     /* Initialize action controller here */
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
 }
Ejemplo n.º 20
0
 public function init()
 {
     $this->view->pageTitle = $this->view->translate('Group law');
     $this->view->title = 'Accounting';
     $this->view->adm = new App_Model_Adm();
     $this->view->datechange = new App_Model_dateConvertor();
     $this->view->loan = new Grouplaw_Model_grouplaw();
     /* Initialize action controller here */
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $globalsession = new App_Model_Users();
     $loginname = $globalsession->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
 }
Ejemplo n.º 21
0
 public function init()
 {
     $this->view->pageTitle = 'Fundings';
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
         // once session get expired it will redirect to Login page
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     // get the stored session id
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
         // get the user name
     }
     //         if (($this->view->glourbankalvalue[0]['id'] == 0)) {
     //              $this->_redirect('index/logout');
     //         }
     $this->view->adm = new App_Model_Adm();
     //$this->view->activity = new Funding_Model_Funding();
 }
Ejemplo n.º 22
0
 public function init()
 {
     $this->view->pageTitle = 'Savings';
     $this->view->Action = $this->getRequest()->getActionName();
     if ($this->_request->getParam('savingtypeId')) {
         $this->view->producttype = $this->_request->getParam('savingtypeId');
     } else {
         $this->view->producttype = $this->_request->getParam('productType');
     }
     $this->view->adm = new App_Model_Adm();
     $storage = new Zend_Auth_Storage_Session();
     $data = $storage->read();
     if (!$data) {
         $this->_redirect('index/login');
     }
     $sessionName = new Zend_Session_Namespace('ourbank');
     $userid = $this->view->createdby = $sessionName->primaryuserid;
     $login = new App_Model_Users();
     $loginname = $login->username($userid);
     foreach ($loginname as $loginname) {
         $this->view->username = $loginname['username'];
     }
     //                 $globalsession = new App_Model_Users();
     //                 $this->view->globalvalue = $globalsession->getSession();// get session values
     //                 $this->view->createdby = $this->view->globalvalue[0]['id'];
     //                 $this->view->username = $this->view->globalvalue[0]['username'];
     // 				$storage = new Zend_Auth_Storage_Session();
     //         		$data = $storage->read();
     //         		if(!$data){
     //            		 $this->_redirect('index/login');
     //         			}
     $dbobj = new Savings_Model_Savings();
     $status = $dbobj->getStatus('Savings');
     if (!$status) {
         $headerCon = "L";
         $glsubcode = $dbobj->genarateGlCode('personal saving');
         $glcode = $dbobj->getGlCodeid('personal saving');
         $glcodeexist = $dbobj->getGlCodeexist('personal saving');
         $glco = substr($glcodeexist, 1, 2);
         if ($glsubcode) {
             $first = substr($glsubcode, 0, 3);
             $existcode = substr($glsubcode, 3, 3);
             $existcode++;
             $last = str_pad($existcode, 3, 0, STR_PAD_LEFT);
             $newglsubcode = $first . $last;
         } else {
             $glcodeId = $headerCon . $glco . "001";
             $newglsubcode = $glcodeId;
         }
         $date = date("y/m/d H:i:s");
         $ledgertype = $this->view->adm->getsingleRecord('ourbank_master_ledgertypes', 'id', 'name', 'Liabilities');
         // get the ledgertype for Liability
         $officeid = $this->view->adm->getsingleRecord('ourbank_user', 'bank_id', 'id', $this->view->createdby);
         // get the ledgertype for Liability
         // Insert glsubcode details
         $glsubcodeid = $this->view->adm->addRecord('ourbank_glsubcode', array('id' => '', 'office_id' => $officeid, 'glsubcode' => $newglsubcode, 'glcode_id' => $glcode, 'subledger_id' => $ledgertype, 'header' => 'Savings', 'description' => 'Savings', 'created_date' => date("Y-m-d"), 'created_by' => $this->view->createdby));
     }
     $productvalues = $dbobj->getAllOffer('Savings');
     $procuctid = $dbobj->getProductid('ps');
     $name = 'Savings';
     $desc = 'For savings products';
     // If product offer not available we have to insert base offer details
     if (empty($productvalues)) {
         $offerid = $this->view->adm->addRecord('ourbank_productsoffer', array('id' => '', 'name' => $name, 'shortname' => 'sb', 'product_id' => $procuctid, 'description' => $desc, 'begindate' => date("Y-m-d"), 'closedate' => '', 'applicableto' => 4, 'glsubcode_id' => $glsubcodeid));
         // Insert product saving details
         $this->view->adm->addRecord('ourbank_productssaving', array('productsoffer_id' => $offerid, 'frequencyofdeposit' => 1, 'minmumdeposit' => 1, 'minimumbalanceforinterest' => 1, 'frequencyofinterestupdating' => 'AvgBalance', 'Int_timefrequency_id' => 1));
         //                     // Insert product saving details
         $this->view->adm->addRecord('ourbank_interest_periods', array('id' => '', 'period_ofrange_monthfrom' => 1, 'period_ofrange_monthto' => 2, 'period_ofrange_description' => '1-1 Months', 'offerproduct_id' => $offerid, 'Interest' => 1, 'intereststatus_id' => 3));
     }
 }