public function renderPOSTypeDashboard() { if($this->isSales()) { $this->redirect( Yii::app()->createUrl('order/' . Helper::CONST_posclient) ); }else { $customerduemodel = new Person; $customerduemodel->unsetAttributes(); $productpricemodel = new Subproductprice; $productpricemodel->unsetAttributes(); $orderproductmodel = new Orderproduct; $orderproductmodel->unsetAttributes(); $this->render( $this->getView('index','index'), array( 'customerduemodel' => $customerduemodel, 'productpricemodel' => $productpricemodel, 'orderproductmodel' => $orderproductmodel, ) ); } }
public function actionAdjsearch() { $model=new Subproductprice('search'); $model->unsetAttributes(); // clear any default values if(isset($_GET['Subproductprice'])) $model->attributes=$_GET['Subproductprice']; $this->render('Adjsearch',array( 'model'=>$model, )); }
/** GET SUB PRODUCT LIST TO VIEW IN DATA TABLE ********************/ public function actionViewProductPrices($id) { $model = new Subproductprice( 'search' ); $model->unsetAttributes(); // clear any default values if ( isset( $_GET['Subproductprice'] ) ) $model->attributes = $_GET['Subproductprice']; $model->product_id = $id; $this->render( 'admin', array( 'model' => $model, ) ); }
public function actionStockInventory() { $model = new Subproductprice( 'stockinventory' ); $model->unsetAttributes(); if ( isset( $_GET['Subproductprice'] ) ) $model->attributes = $_GET['Subproductprice']; if(!empty( $_GET['actionid'] ) && $_GET['actionid'] == Helper::CONST_PDF) { $html = $this->renderPartial( Helper::CONST_stockInventory, array( 'model' => $model, ),true ); $this->writeToPdf( $html ); } else { $this->render( Helper::CONST_stockInventory, array( 'model' => $model, ) ); } }