add editable account on reception/customer-cart, add towel handling
This commit is contained in:
@@ -401,6 +401,11 @@ class TransferController extends Controller
|
||||
return $this->redirect(['account/select']);
|
||||
}
|
||||
|
||||
$hiddenAccounts = Account::find()
|
||||
->andWhere(['type' => Account::TYPE_VALUE_HIDDEN])
|
||||
->andWhere(['status' => Account::STATUS_ACTIVE])->all();
|
||||
|
||||
|
||||
$customer = null;
|
||||
$card = Card::findOne($id_card);
|
||||
if ($card != null )
|
||||
@@ -413,6 +418,7 @@ class TransferController extends Controller
|
||||
|
||||
$model = new CustomerCartForm();
|
||||
$model->customer = $customer;
|
||||
$model->hiddenAccounts = $hiddenAccounts;
|
||||
if ($model->load(Yii::$app->request->post()) && $model->payout()) {
|
||||
return $this->redirect(['customer-cart','id_card' => $model->customer->card->id_card]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user