public function addAction() { $fm = new Accounting_Form_FrmGeneraljurnal(); $frm = $fm->FrmGeneraljurnal(); Application_Model_Decorator::removeAllDecorator($frm); $this->view->frm_fixedasset = $frm; }
public function editAction() { $_dbmodel = new Accounting_Model_DbTable_DbGeneraljurnal(); if ($this->getRequest()->isPost()) { $_data = $this->getRequest()->getPost(); try { $_db = new Accounting_Model_DbTable_DbJournal(); $_db->upDateJournal($_data); Application_Form_FrmMessage::Sucessfull("INSERT_SUCCESS", "/accounting/generaljurnal"); } catch (Exception $e) { Application_Form_FrmMessage::message("INSERT_FAIL"); Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage()); } } $id = $this->getRequest()->getParam('id'); $row = $_dbmodel->getjurnalEntryById($id); $this->view->jdetail = $_dbmodel->getjurnalEntryDetail($id); $fm = new Accounting_Form_FrmGeneraljurnal(); $frm = $fm->FrmGeneraljurnal($row); Application_Model_Decorator::removeAllDecorator($frm); $this->view->frm_fixedasset = $frm; $db = new Accounting_Model_DbTable_DbJournal(); $this->view->row_parents = $db->getAllParrentAccount(1); $this->view->row_accountname = $db->getAllParrentAccount(1, 1); }