sig station_lock_state collect_post

This commit is contained in:
ragu 2022-06-10 20:49:26 +02:00
parent d918794ef0
commit a8891eb704
5 changed files with 42 additions and 26 deletions

View file

@ -1647,6 +1647,7 @@ sub user_bikes_occupied(){
my $self = shift;
my $q = shift;
my $auth = shift;
my $station_lock_state = shift || "";
my $pref = {
table => "contenttrans",
@ -1659,6 +1660,11 @@ sub user_bikes_occupied(){
int10 => "IN::('3','2')",
"ct.close_time" => "is::null",
};
#station_lock_stat enables a OR condition to view available as requested/occupied
##selects also station_lock_state=locking bikes to view once miniquery
#true if not defined! it will only defined on booking_request, because there must be available
$pref->{station_lock_state} = "3" if(!$station_lock_state);
my $record = $dbt->collect_post($dbh,$pref);
return $record;
}#end user_bikes_occupied
@ -1725,8 +1731,7 @@ sub rentals(){
}
}#end mini_quest
#there seems some methodes which needs state, thats because disabled
#$return->{state} = "requested";#used once in App after sig rental-end push-notify
$return->{$id}->{state} = "returned";#used once in App after sig rental-end push-notify
$return->{$id}->{rentalId} = "$record->{$id}->{txt11}";
my $update_pos = {