X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main.cgi;h=4d27765d0125776d8e9a56a2614b6ae2922fe79d;hp=4ed30b8139548f127a67a253c99aea43c3e81a68;hb=b3e85cf7a5a514f185c7d9c5ba50550c759c9ab5;hpb=6ced9264b8ec79e4b460be90ede25ec72a7dfc16;ds=sidebyside diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index 4ed30b813..4d27765d0 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 '
'. - '
'. - qq!!. - ' +

-print '
'; +<% if ( $conf->config('payby-default') ne 'HIDE' ) { @@ -625,17 +639,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! (