Exemplo n.º 1
0
 public function actionGetglwisesubheadlist()
 {
     $subheadModel = new LedgerSubhead();
     $glID = $_POST['glid'];
     $subheadList = $subheadModel->GeneralLedgerWiseSubheadList($glID);
     $data = array('success' => 'success', 'subheadList' => $subheadList);
     echo json_encode($data);
 }
Exemplo n.º 2
0
 public function actionIndex()
 {
     $ledgerModel = new Ledger();
     $subheadModel = new LedgerSubhead();
     $incomeSubheadList = LedgerSubhead::find()->select('subHeadID,name')->where(['generalLedgerID' => LedgerSubhead::INCOME])->all();
     $expenseSubheadList = LedgerSubhead::find()->select('subHeadID,name')->where(['generalLedgerID' => LedgerSubhead::EXPENSE])->all();
     $allLedgerData = $ledgerModel->getLedgerData();
     return $this->render('index', ['ledgerModel' => $ledgerModel, 'incomeSubheadList' => $incomeSubheadList, 'expenseSubheadList' => $expenseSubheadList, 'allLedgerData' => $allLedgerData]);
 }