function billingAction() { $this->_checkAuth(); $userFinance = new Pandamp_Modules_Identity_UserFinance_Model_UserFinance(); $userId = @$this->_userInfo->userId; $rowset = $userFinance->getUserFinance($userId); $tblOrder = new Pandamp_Modules_Payment_Order_Model_Order(); $outstandingAmount = @$tblOrder->outstandingUserAmout($this->_userInfo->userId); $this->view->rowset = $rowset; $this->view->outstandingAmount = $outstandingAmount; if ($this->_request->isPost('save')) { $data['taxNumber'] = $this->_request->getParam('taxNumber'); $data['taxCompany'] = $this->_request->getParam('taxCompany'); $data['taxAddress'] = $this->_request->getParam('taxAddress'); $data['taxCity'] = $this->_request->getParam('taxCity'); $data['taxProvince'] = $this->_request->getParam('taxProvince'); $data['taxZip'] = $this->_request->getParam('taxZip'); $data['taxCountryId'] = $this->_request->getParam('taxCountryId'); $where = "userId = '" . $userId . "'"; $userFinance->update($data, $where); $this->_helper->redirector('bilupdsuc'); } else { } }