X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main.cgi;h=22c4191021cf4fc67a89775942146ced12ec57fa;hp=4ed30b8139548f127a67a253c99aea43c3e81a68;hb=657742d1118c350120ecac455ae013f1deed5b83;hpb=6ced9264b8ec79e4b460be90ede25ec72a7dfc16
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index 4ed30b813..22c419102 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -300,13 +300,25 @@ if ( defined $cust_main->dbdef_table->column('comments')
'';
}
-print '';
+%>
-print '
'.
- '
';
+<%
if ( $conf->config('payby-default') ne 'HIDE' ) {
@@ -570,6 +584,7 @@ print '';
my $target = "$payby$payinfo";
$payby =~ s/^BILL$/Check #/ if $payinfo;
+ $payby =~ s/^CHEK$/Electronic check /;
$payby =~ s/^BILL$//;
$payby =~ s/^(CARD|COMP)$/$1 /;
my $info = $payby ? " ($payby$payinfo)" : '';
@@ -625,17 +640,17 @@ print '';
my $refund = '';
my $refund_days = $conf->config('card_refund-days') || 120;
if ( $cust_pay->closed !~ /^Y/i
- && $cust_pay->payby eq 'CARD'
+ && $cust_pay->payby =~ /^(CARD|CHEK)$/
&& time-$cust_pay->_date < $refund_days*86400
&& $cust_pay->unrefunded > 0
) {
- $refund = qq! (paynum. qq!">refund)!;
}
my $void = '';
if ( $cust_pay->closed !~ /^Y/i
- && $cust_pay->payby ne 'CARD'
+ && $cust_pay->payby !~ /^(CARD|CHEK)$/
) {
$void = qq! (';
: $cust_refund->payinfo;
$payby =~ s/^BILL$/Check #/ if $payinfo;
+ $payby =~ s/^CHEK$/Electronic check /;
$payby =~ s/^(CARD|COMP)$/$1 /;
push @history, {