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)) { // 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());