mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-13 15:16:38 +02:00
new rental editor minor changes
This commit is contained in:
parent
aceda57b50
commit
782bf6a153
4 changed files with 13 additions and 13 deletions
|
@ -1792,11 +1792,10 @@ sub bikes_available(){
|
|||
|
||||
if(ref($tariff_content) eq "HASH"){
|
||||
foreach my $tid (sort { $tariff_content->{$a}->{barcode} <=> $tariff_content->{$b}->{barcode} } keys (%$tariff_content)){
|
||||
#$bw->log("bikes_available tariff_content tariff_description $tariff_content->{$tid}->{int12} && $auth->{txt30} =~ /$tariff_content->{$tid}->{barcode}/ BIKE:",$return->{$id}->{bike},"");
|
||||
|
||||
foreach(@adr_tariff){
|
||||
if($record->{$id}->{main_id} == $tariff_content->{$tid}->{int12} && $_ == $tariff_content->{$tid}->{barcode}){
|
||||
$bw->log("bikes_available for user c_id: $auth->{c_id} if($record->{$id}->{main_id} == $tariff_content->{$tid}->{int12} && $_ == $tariff_content->{$tid}->{barcode}) on BIKE:",$return->{$id}->{bike},"");
|
||||
#$bw->log("bikes_available for user c_id: $auth->{c_id} if($record->{$id}->{main_id} == $tariff_content->{$tid}->{int12} && $_ == $tariff_content->{$tid}->{barcode}) on BIKE:",$return->{$id}->{bike},"");
|
||||
|
||||
#deprecated
|
||||
$return->{$id}->{tariff_description}->{name} = "$tariff_content->{$tid}->{ct_name}";
|
||||
|
@ -1946,7 +1945,7 @@ sub stations_available(){
|
|||
my $station_group = "";
|
||||
$station_group = $record_pos->{int12} if(ref($record_pos) eq "HASH" && $record_pos->{int12});
|
||||
|
||||
$bw->log("stations_available by station_group: $station_group",$record_pos,"");
|
||||
#$bw->log("stations_available by station_group: $station_group",$record_pos,"");
|
||||
|
||||
my $authed = 0;
|
||||
$authed = 1 if(ref($auth) eq "HASH" && $auth->{c_id});
|
||||
|
|
|
@ -139,6 +139,9 @@ sub save_contenttranspos {
|
|||
$update_pos->{int10} = $R::int10 if(looks_like_number($R::int10));
|
||||
$update_pos->{int20} = $R::int20 if(looks_like_number($R::int20));
|
||||
$update_pos->{int04} = $R::int04 if(looks_like_number($R::int04));
|
||||
|
||||
$update_pos->{txt01} = $q->escapeHTML($R::txt01) if($R::txt01);
|
||||
$update_pos->{txt23} = $q->escapeHTML($R::txt23) if($R::txt23);
|
||||
|
||||
#before update bike content check if realy last rental
|
||||
my $pref2ck = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue