disable ticket checking on moveout

This commit is contained in:
Schneider Roland 2023-05-25 08:51:37 +02:00
parent 81e12001a5
commit 826e99ce78

View File

@ -558,20 +558,21 @@ class KeyDoorManager extends BaseObject
}
}
if (!isset($ticket)) {
throw new FitnessException(
"$ctx->requestId: No active ticket found for:" . $ctx->card->number,
FitnessException::TYPE_BAD_REQUEST,
"NOT_FOUND_ACTIVE_TICKET",
$ctx
);
}
$ctx->ticket = $ticket;
$ticket->count_move_out = $ticket->usage_count;
if (!$ctx->verifyOnly) {
$ticket->save(false);
}
// if (!isset($ticket)) {
// throw new FitnessException(
// "$ctx->requestId: No active ticket found for:" . $ctx->card->number,
// FitnessException::TYPE_BAD_REQUEST,
// "NOT_FOUND_ACTIVE_TICKET",
// $ctx
// );
// }
// if ( isset($ticket)){
// $ctx->ticket = $ticket;
// $ticket->count_move_out = $ticket->usage_count;
// if (!$ctx->verifyOnly) {
// $ticket->save(false);
// }
// }
$ctx->actions[] = "MOVE_OUT";
Yii::info("$ctx->requestId: direction_out: ticket count_move_out set after direction_out in sec " . $stopWatch->split());