add reception redirection change when card with key read

This commit is contained in:
2016-02-24 21:40:21 +01:00
parent ae212eddd4
commit 3b7f42014b
5 changed files with 33 additions and 3 deletions

View File

@@ -60,6 +60,8 @@ class CustomerController extends Controller
if ( $model->isFreeCard() ){
return $this->redirect([ 'create', 'number' => $model->card->number ]);
}else if ( $model->isCardWithKey()){
return $this->redirect([ 'product/sale', 'number' => $model->card->number ]);
}else if ( $model->isCustomerWithTicket()){
// return $this->redirect([ 'product/sale', 'number' => $model->card->number ]);
// return $this->redirect([ 'customer/reception', 'number' => $model->card->number ]);