disable ticket checking on moveout
This commit is contained in:
parent
81e12001a5
commit
826e99ce78
@ -558,20 +558,21 @@ class KeyDoorManager extends BaseObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($ticket)) {
|
// if (!isset($ticket)) {
|
||||||
throw new FitnessException(
|
// throw new FitnessException(
|
||||||
"$ctx->requestId: No active ticket found for:" . $ctx->card->number,
|
// "$ctx->requestId: No active ticket found for:" . $ctx->card->number,
|
||||||
FitnessException::TYPE_BAD_REQUEST,
|
// FitnessException::TYPE_BAD_REQUEST,
|
||||||
"NOT_FOUND_ACTIVE_TICKET",
|
// "NOT_FOUND_ACTIVE_TICKET",
|
||||||
$ctx
|
// $ctx
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
$ctx->ticket = $ticket;
|
// if ( isset($ticket)){
|
||||||
|
// $ctx->ticket = $ticket;
|
||||||
$ticket->count_move_out = $ticket->usage_count;
|
// $ticket->count_move_out = $ticket->usage_count;
|
||||||
if (!$ctx->verifyOnly) {
|
// if (!$ctx->verifyOnly) {
|
||||||
$ticket->save(false);
|
// $ticket->save(false);
|
||||||
}
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
$ctx->actions[] = "MOVE_OUT";
|
$ctx->actions[] = "MOVE_OUT";
|
||||||
Yii::info("$ctx->requestId: direction_out: ticket count_move_out set after direction_out in sec " . $stopWatch->split());
|
Yii::info("$ctx->requestId: direction_out: ticket count_move_out set after direction_out in sec " . $stopWatch->split());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user