change procurement product selection, keytoggle redirect change

This commit is contained in:
2016-03-01 21:18:39 +01:00
parent b07bc4eca9
commit 80b8f5a238
12 changed files with 184 additions and 35 deletions

View File

@@ -100,10 +100,12 @@ class KeyController extends Controller
$model->toggleKey();
}
if ( isset($model->action ) && $model->action == 'unassign' ){
return $this->redirect(['product/sale', 'number' => $number ]);
if ( isset( $model->keyCard ) ){
return $this->redirect(['product/sale', 'number' => $model->keyCard->number ]);
}
return $this->redirect(['customer/reception', 'number' => $number ]);
}