fix account_state ( collection_money ), display product/ticket on reception only for selected account, add daily transfers (reception/admin)
This commit is contained in:
@@ -84,6 +84,8 @@ class AccountStateController extends Controller
|
||||
*/
|
||||
public function actionClose()
|
||||
{
|
||||
$lastStates = AccountState::readLastForUser(AccountState::TYPE_OPEN );
|
||||
$lastStates = AccountState::modelsToArray($lastStates);
|
||||
$model = new AccountState();
|
||||
$model->type = AccountState::TYPE_CLOSE;
|
||||
$model->id_user = Yii::$app->user->id;
|
||||
@@ -97,6 +99,7 @@ class AccountStateController extends Controller
|
||||
return $this->render('close', [
|
||||
'model' => $model,
|
||||
'accounts' => $accounts,
|
||||
'lastStates' => $lastStates,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user