projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow punctuation in tax name on tax report, #33255
[freeside.git]
/
httemplate
/
edit
/
cust_refund.cgi
diff --git
a/httemplate/edit/cust_refund.cgi
b/httemplate/edit/cust_refund.cgi
index
612e337
..
4865343
100755
(executable)
--- a/
httemplate/edit/cust_refund.cgi
+++ b/
httemplate/edit/cust_refund.cgi
@@
-59,33
+59,29
@@
</TD>
</TR>
% }
</TD>
</TR>
% }
-
-%
-% #false laziness w/FS/FS/cust_main::realtime_refund_bop
-% if ( $cust_pay->paybatch =~ /^(\w+):(\w+)(:(\w+))?$/ ) {
-% my ( $processor, $auth, $order_number ) = ( $1, $2, $4 );
-%
-
-
+% if ( $cust_pay->processor ) {
<TR>
<TR>
- <TD ALIGN="right">Processor</TD><TD BGCOLOR="#ffffff"><% $processor %></TD>
+ <TD ALIGN="right">Processor</TD>
+ <TD BGCOLOR="#ffffff"><% $cust_pay->processor %></TD>
</TR>
</TR>
-% if ( length($auth) ) {
+% if ( length($
cust_pay->
auth) ) {
<TR>
<TR>
- <TD ALIGN="right">Authorization</TD><TD BGCOLOR="#ffffff"><% $auth %></TD>
+ <TD ALIGN="right">Authorization</TD>
+ <TD BGCOLOR="#ffffff"><% $cust_pay->auth %></TD>
</TR>
% }
</TR>
% }
-% if ( length($order_number) ) {
+% if ( length($
cust_pay->
order_number) ) {
<TR>
<TR>
- <TD ALIGN="right">Order number</TD><TD BGCOLOR="#ffffff"><% $order_number %></TD>
+ <TD ALIGN="right">Order number</TD>
+ <TD BGCOLOR="#ffffff"><% $cust_pay->order_number %></TD>
</TR>
% }
</TR>
% }
-% }
+% }
# if ($cust_pay->processor)
</TABLE>
</TABLE>
-% }
+% }
#if $cust_pay
<BR>Refund
<BR>Refund
@@
-98,7
+94,7
@@
<TR>
<TD ALIGN="right">Amount</TD>
<TR>
<TD ALIGN="right">Amount</TD>
- <TD BGCOLOR="#ffffff">$<INPUT TYPE="text" NAME="refund" VALUE="<% $refund %>" SIZE=8 MAXLENGTH=
8
> by <B><% FS::payby->payname($payby) %></B></TD>
+ <TD BGCOLOR="#ffffff">$<INPUT TYPE="text" NAME="refund" VALUE="<% $refund %>" SIZE=8 MAXLENGTH=
9
> by <B><% FS::payby->payname($payby) %></B></TD>
</TR>
% if ( $payby eq 'BILL' ) {
</TR>
% if ( $payby eq 'BILL' ) {
@@
-141,10
+137,10
@@
my $reason = $cgi->param('reason');
my $link = $cgi->param('popup') ? 'popup' : '';
my @rights = ();
my $link = $cgi->param('popup') ? 'popup' : '';
my @rights = ();
-push @rights, 'Post refund' if $payby
/^(BILL|CASH
)$/;
+push @rights, 'Post refund' if $payby
=~ /^(BILL|CASH|MCRD|MCHK
)$/;
push @rights, 'Post check refund' if $payby eq 'BILL';
push @rights, 'Post cash refund ' if $payby eq 'CASH';
push @rights, 'Post check refund' if $payby eq 'BILL';
push @rights, 'Post cash refund ' if $payby eq 'CASH';
-push @rights, 'Refund payment' if $payby /^(CARD|CHEK)$/;
+push @rights, 'Refund payment' if $payby
=~
/^(CARD|CHEK)$/;
push @rights, 'Refund credit card payment' if $payby eq 'CARD';
push @rights, 'Refund Echeck payment' if $payby eq 'CHEK';
push @rights, 'Refund credit card payment' if $payby eq 'CARD';
push @rights, 'Refund Echeck payment' if $payby eq 'CHEK';