<div class="form-group"> <?php echo $form->field($model, 'uom')->dropDownList(ArrayHelper::map(Units::find()->all(), 'unitName', 'unitName'), ['prompt' => 'Unit']); ?> </div> </div> </div> <!--row 2end--> <div class="row"> <!--row 3--> <div class="col-md-4"> <div class="form-group"> <?php echo $form->field($model, 'AltUom')->dropDownList(ArrayHelper::map(Units::find()->all(), 'unitName', 'unitName'), ['prompt' => 'Alternate Unit']); ?> </div> </div> <div class="col-md-4"> <div class="form-group"> <?php echo $form->field($model, 'SalePrice')->textInput(['maxlength' => true]); ?> </div> </div> <div class="col-md-4"> <div class="form-group"> <?php
?> " value="<?php echo $model['AltQty']; ?> "></div></td> <td><div class="actualval acval<?php echo $model['Saleid']; ?> " ><?php echo $model['AltUom']; ?> </div><div class="inpval inval<?php echo $model['Saleid']; ?> "><?php echo Html::activeDropDownList($model, 'AltUom', ArrayHelper::map(Units::find()->all(), 'unitName', 'unitName'), ['id' => 'altuom' . $model['Saleid']]); ?> </div></td> <td><div class="actualval acval<?php echo $model['Saleid']; ?> " ><?php echo $model['UnitPrice']; ?> </div><div class="inpval inval<?php echo $model['Saleid']; ?> "><input type="text" class="product-width" id="unitprice<?php echo $model['Saleid']; ?> " value="<?php
/** * Finds the Units model based on its primary key value. * If the model is not found, a 404 HTTP exception will be thrown. * @param integer $id * @return Units the loaded model * @throws NotFoundHttpException if the model cannot be found */ protected function findModel($id) { if (($model = Units::findOne($id)) !== null) { $admincreatedModel = AdminMaster::findOne($model->createdBy); $adminupdatedModel = AdminMaster::findOne($model->updatedBy); $model->createdBy = $admincreatedModel->username; $model->updatedBy = $adminupdatedModel->username; return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }