示例#1
0
 public function getbranchAction()
 {
     $this->_helper->layout->disableLayout();
     $office_id = $this->_request->getParam('id');
     $individual = new Receipts_Model_Receipts();
     $this->view->branchs = $individual->getBranchEdit($office_id);
 }
示例#2
0
 public function getbalanceAction()
 {
     $this->_helper->layout->disableLayout();
     $glsubcode = $this->_request->getParam('glsubcode');
     $this->view->adm = new App_Model_Adm();
     $receipts = new Receipts_Model_Receipts();
     $toledgertype = '';
     $tablenameto = '';
     if ($glsubcode) {
         $toledgercode = $receipts->listOfsubledgercode($glsubcode);
         foreach ($toledgercode as $toledgercodes) {
             $toledgertype = $toledgercodes['name'];
         }
     }
     if ($toledgertype == "Income") {
         $tablenameto = "ourbank_Income";
     } elseif ($toledgertype == "Expenditure") {
         $tablenameto = "ourbank_Expenditure";
     } elseif ($toledgertype == "Assets") {
         $tablenameto = "ourbank_Assets";
     } elseif ($toledgertype == "Liabilities") {
         $tablenameto = "ourbank_Liabilities";
     }
     $this->view->balance2 = $receipts->getbalance($glsubcode, $tablenameto);
 }