mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-06-15 21:26:28 +02:00
save enhanced payment logging
This commit is contained in:
parent
d786a0f30e
commit
a645d292d5
13 changed files with 100 additions and 49 deletions
|
@ -63,6 +63,8 @@ sub tpl(){
|
|||
c_id => $users_dms->{c_id4trans},
|
||||
};
|
||||
$ctt = $dbt->fetch_record($dbh,$pref);
|
||||
my $warn_time = $ctt->{warn_time} || "";
|
||||
$warn_time = $lb->time4de($warn_time,0) if($warn_time);
|
||||
|
||||
my $ctadr = { c_id => 0 };
|
||||
my $rel_adr = { rel_id => 0 };
|
||||
|
@ -309,9 +311,16 @@ EOF
|
|||
my $kind_of_payment = "fehlt";
|
||||
$kind_of_payment = "$_paymentstate[0]" if($ctadr->{int03} == 1);
|
||||
$kind_of_payment = "$_paymentstate[1]" if($ctadr->{int03} == 2);
|
||||
my $payteaser = "";
|
||||
if($ctadr->{txt28}){
|
||||
$payteaser = substr($ctadr->{txt28},0,50) . " ...";
|
||||
}
|
||||
print $q->Tr(),"\n";
|
||||
print $q->td({-class=>'tdescr4'},"Payone Zahlungsart"),"\n";
|
||||
print $q->td({-class=>'tdval4'},"$kind_of_payment | aus Kunden Stammdaten"),"\n";
|
||||
print $q->td({-class=>'tdval4'},"$kind_of_payment"),"\n";
|
||||
print $q->Tr(),"\n";
|
||||
print $q->td({-class=>'tdescr4'},"Payone last log"),"\n";
|
||||
print $q->td({-class=>'tdval4'},"$payteaser"),"\n";
|
||||
print $q->Tr(),"\n";
|
||||
print $q->td({-class=>'tdescr4'},"Payone TXID"),"\n";
|
||||
print $q->td({-class=>'tdval4'},"$ctt->{txt16}"),"\n";
|
||||
|
@ -322,12 +331,6 @@ EOF
|
|||
print $q->td({-class=>'tdescr4'},"Payone Referenz"),"\n";
|
||||
print $q->td({-class=>'tdval4'},"$ctt->{txt25}"),"\n";
|
||||
|
||||
#check payone status
|
||||
if($ctt->{txt28} =~ /error/i){
|
||||
print $q->Tr(),"\n";
|
||||
print $q->td({-class=>'tdescr4'},"payone error"),"\n";
|
||||
print $q->td({-class=>'tdval4'},"(transaction) $ctt->{txt28}"),"\n";
|
||||
}
|
||||
}
|
||||
print $q->end_table;
|
||||
print "</td></tr>\n";
|
||||
|
@ -372,7 +375,7 @@ EOF
|
|||
print $q->Tr(),"\n";
|
||||
my @_orderstate = split(/\|/,$dbt->{shareedms_conf}->{order_state});
|
||||
print $q->td({-class=>'tdval5',-colspan=>1},$but->selector("txt22","180px",$ctt->{txt22},@_orderstate)),"\n";
|
||||
print $q->td({-class=>'tdval5',-colspan=>1},"Fälligkeit",$q->textfield(-id=>'datepicker3',-class=>'etxt',-name=>"warn_time",-default=>"$ctt->{warn_time}",-size=>"8",-maxlength=>10)),"\n";
|
||||
print $q->td({-class=>'tdval5',-colspan=>1},"Fälligkeit",$q->textfield(-id=>'datepicker3',-class=>'etxt',-name=>"warn_time",-default=>"$warn_time",-override=>1,-size=>"8",-maxlength=>10)),"\n";
|
||||
|
||||
}
|
||||
$ctt->{txt23} = $q->unescapeHTML("$ctt->{txt23}") if($ctt->{txt23});
|
||||
|
@ -439,7 +442,7 @@ EOF
|
|||
$ctt_rel = $dbt->fetch_record($dbh,$pref_rel);
|
||||
|
||||
if(ref($ctt_rel) eq "HASH"){
|
||||
print "<div style='padding: 0 10px 15px 5px;'>Relationen\n";
|
||||
print "<div style='padding: 0 15px;font-size:0.91em;'><b>Relationen</b>\n";
|
||||
foreach my $id (sort { $ctt_rel->{$b}->{c_id} <=> $ctt_rel->{$a}->{c_id} } keys (%$ctt_rel)){
|
||||
print $q->span({-style=>"background-color:#f7ae37"}, $q->a({-class=>"linknav",-href=>"/$dbt->{shareedms_conf}->{parent_node}/Faktura/$ctt_rel->{$id}->{node_name}?ct_trans=open\&c_id4trans=$ctt_rel->{$id}->{c_id}\&tpl_id4trans=$ctt_rel->{$id}->{template_id}\&owner=$users_dms->{u_id}",-title=>"Faktura Terminal öffnen"},"[ $ctt_rel->{$id}->{txt00} #$ctt_rel->{$id}->{ct_name} ]")),"\n";
|
||||
}
|
||||
|
@ -447,11 +450,16 @@ EOF
|
|||
}
|
||||
}
|
||||
|
||||
#payone-return log
|
||||
$ctt->{txt28} = $lb->newline($ctt->{txt28},"","");
|
||||
print $q->div({-id=>'Oline'},""),"\n";
|
||||
print $q->div({-style=>'padding: 0 15px 20px 15px;font-size:0.91em;'},"<b>payone-response log</b><br />$ctt->{txt28}"),"\n";
|
||||
|
||||
$line_count2 = "0" . "$line_count2" if($line_count2 < 10);
|
||||
my $line_count = "$line_count1.$line_count2";
|
||||
#print $q->div({style=>'font-size:0.81em;'},"line to print -> address+text: $line_count1 | table: $line_count2"),"\n";
|
||||
#$db->update_content4change2("contenttrans",$ctt->{c_id},"$line_count","int04") if($ctt->{c_id});
|
||||
print "</div>\n";
|
||||
$db->update_content4change2("contenttrans",$ctt->{c_id},"$line_count","int04") if($ctt->{c_id});
|
||||
return $line_count;
|
||||
}
|
||||
1;
|
||||
|
|
|
@ -783,10 +783,10 @@ EOF
|
|||
use URI::Encode qw(uri_encode uri_decode);
|
||||
$ctrel->{txt28} = uri_decode($ctrel->{txt28});
|
||||
$ctrel->{txt28} =~ s/\+/ /g;
|
||||
print $q->td({-style=>'border:1px solid silver;'},$ctrel->{txt28}),"\n";
|
||||
}else{
|
||||
print $q->td({-class=>'content1_cms', -colspan=>'3'},$q->textarea(-id=>"$key", -class=>"etxt", -style=>"border: 1px solid silver;$h $w", -name=>"$key", -override=>'1',-default=>"$ctrel->{$key}")),"\n";
|
||||
#print $q->td({-style=>'border:1px solid silver;'},$ctrel->{txt28}),"\n";
|
||||
#}else{
|
||||
}
|
||||
print $q->td({-class=>'content1_cms', -colspan=>'3'},$q->textarea(-id=>"$key", -class=>"etxt", -style=>"border: 1px solid silver;$h $w", -name=>"$key", -override=>'1',-default=>"$ctrel->{$key}")),"\n";
|
||||
}
|
||||
elsif($key =~ /txt02/ && $varenv{syshost} =~ /sharee/){
|
||||
#nothing txt02=Datei aktiv=10=sharee-APP aktivierte Dokument
|
||||
|
|
|
@ -401,8 +401,8 @@ sub tpl(){
|
|||
my $pos_id = "ID $cttpos->{$pid}->{c_id}";
|
||||
my $user_device = "";
|
||||
my $charge = "";
|
||||
$charge .= " → lock-charge $cttpos->{$pid}->{int14} %" if($cttpos->{$pid}->{int14});
|
||||
$charge .= " → bike-charge $cttpos->{$pid}->{int19} %" if($cttpos->{$pid}->{int19});
|
||||
$charge .= " → lock-charge $cttpos->{$pid}->{int14} %" if(looks_like_number($cttpos->{$pid}->{int14}));
|
||||
$charge .= " → bike-charge $cttpos->{$pid}->{int19} %" if(looks_like_number($cttpos->{$pid}->{int19}));
|
||||
if($users_dms_primary->{u_id} && $dbt->{copri_conf}->{contributors} && $users_dms_primary->{u_id} =~ /$dbt->{copri_conf}->{contributors}/){
|
||||
$pos_id = $q->div({-class=>"popup",-onclick=>"toggle_box('$pid')"},"$cttpos->{$pid}->{c_id}", $q->span({-class=>"popuptext",-id=>"$pid"},"$pos_details"));
|
||||
$user_device = "";
|
||||
|
|
|
@ -1043,7 +1043,7 @@ sub tpl(){
|
|||
}
|
||||
print $q->td({-class=>'tdtxt',-style=>"$txtstyle $set_style"},"$color_code"),"\n";
|
||||
#teaser shorts longtext
|
||||
}elsif(($table eq "contentadr" && $key =~ /txt29/) || ($table eq "content" && $key =~ /txt04/) || ($table eq "contenttrans" && $key =~ /txt23/)){
|
||||
}elsif(($table eq "contentadr" && $key =~ /txt29/) || ($table eq "content" && $key =~ /txt04/) || ($table eq "contenttrans" && $key =~ /txt23|txt28/)){
|
||||
my $teaser = "";
|
||||
if($ct4rel->{$id}->{$key}){
|
||||
$teaser = substr($ct4rel->{$id}->{$key},0,50) . " ...";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue