summaryrefslogtreecommitdiff
path: root/httemplate/search
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/search')
-rwxr-xr-xhttemplate/search/cust_pay.cgi12
1 files changed, 7 insertions, 5 deletions
diff --git a/httemplate/search/cust_pay.cgi b/httemplate/search/cust_pay.cgi
index 0eefd2b50..2166eb16d 100755
--- a/httemplate/search/cust_pay.cgi
+++ b/httemplate/search/cust_pay.cgi
@@ -37,10 +37,10 @@
#'align' => 'lrrrll',
'align' => 'rrr'.FS::UI::Web::cust_aligns(),
'links' => [
- '',
- '',
- '',
- ( map { $_ ne 'Cust. Status' ? $link : '' }
+ $link,
+ $link,
+ $link,
+ ( map { $_ ne 'Cust. Status' ? $cust_link : '' }
FS::UI::Web::cust_header()
),
],
@@ -226,7 +226,9 @@ if ( $cgi->param('magic') ) {
}
-my $link = sub {
+my $link = [ "${p}view/cust_pay.html?paynum=", 'paynum' ];
+
+my $cust_link = sub {
my $cust_pay = shift;
$cust_pay->cust_main_custnum
? [ "${p}view/cust_main.cgi?", 'custnum' ]