add inventory total price, rename procurement purchase price
This commit is contained in:
@@ -183,9 +183,14 @@ class InventoryItemController extends Controller
|
||||
throw new NotAcceptableHttpException("A leltár elem nem található");
|
||||
}
|
||||
|
||||
if ($model->load(Yii::$app->request->post()) && $model->save()) {
|
||||
if ($model->load(Yii::$app->request->post()) && $model->validate()) {
|
||||
|
||||
$model->recalculateTotalPriceBrutto();
|
||||
|
||||
$model->save(false);
|
||||
|
||||
$prev = Url::previous("inventory-item-index");
|
||||
|
||||
if ( isset($prev)){
|
||||
return $this->redirect($prev);
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user