mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-13 23:26:29 +02:00
LastenradBayern text
This commit is contained in:
parent
d1badd0dca
commit
98e098caae
6 changed files with 18 additions and 289 deletions
|
@ -692,11 +692,11 @@ sub service_work {
|
|||
#$return->{$article}->{template_id} = "$pos_record->{$id}->{template_id}";
|
||||
if(1==1){
|
||||
if($pos_record->{$id}->{template_id} && $template_group->{$pos_record->{$id}->{template_id}}){
|
||||
$bw->log("$article --> service_work template on id: $id used:",$template_group->{$pos_record->{$id}->{template_id}}->{tpl_id},"");
|
||||
#$bw->log("$article --> service_work template on id: $id used:",$template_group->{$pos_record->{$id}->{template_id}}->{tpl_id},"");
|
||||
@tpl_order = split /,/,$template_group->{$pos_record->{$id}->{template_id}}->{tpl_order};
|
||||
$node->{template_id} = "$pos_record->{$id}->{template_id}";
|
||||
}elsif(1==1){#on init use node tpl
|
||||
$bw->log("$article --> service_work template on id: $id used node_template:",$node->{template_id},"");
|
||||
#$bw->log("$article --> service_work template on id: $id used node_template:",$node->{template_id},"");
|
||||
my $tpl = $dbt->get_tpl($dbh,$node_template->{template_id});
|
||||
@tpl_order = split /,/,$tpl->{tpl_order};
|
||||
$node->{template_id} = "$tpl->{tpl_id}";
|
||||
|
@ -711,13 +711,13 @@ sub service_work {
|
|||
if((($key =~ /int/ && looks_like_number($pos_record->{$id}->{$key})) || ($key eq "txt01" && $pos_record->{$id}->{$key} && $pos_record->{$id}->{$key} ne "NaN" && $erledigt))){
|
||||
$tpl_keyseen .= "$key|";
|
||||
|
||||
$bw->log("$pos_record->{$id}->{barcode} --> if((($key =~ /int/ && looks_like_number($pos_record->{$id}->{$key})) || ($key eq \"txt01\" && $pos_record->{$id}->{$key} && $pos_record->{$id}->{$key} ne \"NaN\"))){",$tpl_keyseen,"");
|
||||
#$bw->log("$pos_record->{$id}->{barcode} --> if((($key =~ /int/ && looks_like_number($pos_record->{$id}->{$key})) || ($key eq \"txt01\" && $pos_record->{$id}->{$key} && $pos_record->{$id}->{$key} ne \"NaN\"))){",$tpl_keyseen,"");
|
||||
my $u_name = $users_map->{$pos_record->{$id}->{owner}}->{txt01} || $channel_map->{$pos_record->{$id}->{owner}} || $pos_record->{$id}->{owner};
|
||||
my $dt2 = DateTime::Format::Pg->parse_datetime($pos_record->{$id}->{mtime});
|
||||
my $time_over = "0";
|
||||
if(looks_like_number($interval) && $interval > 0){
|
||||
my $dt2_over = $dt2->add( days => $interval );
|
||||
$bw->log("service-interval: $interval | $dt1 > $dt2_over (mtime: $pos_record->{$id}->{mtime})",$key,"");
|
||||
#$bw->log("service-interval: $interval | $dt1 > $dt2_over (mtime: $pos_record->{$id}->{mtime})",$key,"");
|
||||
$time_over = "1" if($dt1 > $dt2_over);
|
||||
}
|
||||
|
||||
|
@ -746,8 +746,8 @@ sub service_work {
|
|||
}
|
||||
|
||||
#set init values
|
||||
$bw->log("set service init values by @tpl_order","","");
|
||||
if(!$history && scalar(@tpl_order) > 1){
|
||||
$bw->log("set service init values by @tpl_order","","");
|
||||
$bw->log("tpl_keyseen",$tpl_keyseen,"");
|
||||
$tpl_keyseen =~ s/\|$//;
|
||||
foreach (@tpl_order){
|
||||
|
@ -1877,7 +1877,7 @@ sub bikes_all(){
|
|||
|
||||
my $record = {};
|
||||
#on servicetool only stations on user_tour
|
||||
$bw->log("stations_service_tour of adr c_id: $auth->{c_id}",$stations_allraw,"");
|
||||
#$bw->log("stations_service_tour of adr c_id: $auth->{c_id}",$stations_allraw,"");
|
||||
my @stations_service_tour = ();
|
||||
|
||||
#shareetool
|
||||
|
@ -2078,7 +2078,7 @@ sub stations_all(){
|
|||
|
||||
#on servicetool only stations on user_tour
|
||||
#shareetool
|
||||
$bw->log("stations user_tour by merchant id $dbt->{merchant_ids}->{$varenv->{merchant_id}}->{id} on $varenv->{dbname}",$user_tour,"");
|
||||
#$bw->log("stations user_tour by merchant id $dbt->{merchant_ids}->{$varenv->{merchant_id}}->{id} on $varenv->{dbname}",$user_tour,"");
|
||||
|
||||
if($q->param('authcookie') && $dbt->{merchant_ids}->{$varenv->{merchant_id}}->{id} && $dbt->{merchant_ids}->{$varenv->{merchant_id}}->{id} == 187){
|
||||
if(scalar(@{$user_tour}) >= 1){
|
||||
|
@ -2377,7 +2377,7 @@ sub auth_verify(){
|
|||
$return->{merchant_id} = $1 if($cgi_authcookie && $cgi_authcookie =~ /\w+_(\w+)$/);
|
||||
my $netloc = $q->url(-base=>1);
|
||||
$bw->log("--> auth_verify on dbname $varenv{dbname},\n Starting with authcookie: $cgi_authcookie",$netloc,"");
|
||||
my $debug=1;
|
||||
my $debug=0;
|
||||
my $now_dt = strftime "%Y-%m-%d %H:%M:%S", localtime;
|
||||
open(FILE,">>$varenv{logdir}/authcookie.log") if($debug);
|
||||
print FILE "\n*-->$now_dt $netloc | $varenv{dbname} | $cgi_authcookie\n" if($debug);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue