mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-13 23:26:29 +02:00
sig station_lock_state collect_post
This commit is contained in:
parent
d918794ef0
commit
a8891eb704
5 changed files with 42 additions and 26 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue