summaryrefslogtreecommitdiff
path: root/httemplate/search/cust_credit_refund.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-02-05 16:23:29 -0800
committerMark Wells <mark@freeside.biz>2013-02-05 16:23:29 -0800
commitfed12e8214a8a951377961ccbe7a09171b1e38c2 (patch)
treeb3c902ff90c7397d49716844506a81f921ad9fa4 /httemplate/search/cust_credit_refund.html
parentfc8d730d0a7b31b617c963c5619bd3f45c5c3eb6 (diff)
make customer location columns available in various reports, #940
Diffstat (limited to 'httemplate/search/cust_credit_refund.html')
-rw-r--r--httemplate/search/cust_credit_refund.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/search/cust_credit_refund.html b/httemplate/search/cust_credit_refund.html
index 75138e99d..5d89ebe67 100644
--- a/httemplate/search/cust_credit_refund.html
+++ b/httemplate/search/cust_credit_refund.html
@@ -103,8 +103,8 @@ my $where = 'WHERE '. join(' AND ', @search);
#
my $count_query = 'SELECT COUNT(*), SUM(cust_credit_refund.amount)
FROM cust_credit_refund
- LEFT JOIN cust_credit USING ( crednum )
- LEFT JOIN cust_main USING ( custnum ) '.
+ LEFT JOIN cust_credit USING ( crednum ) '.
+ FS::UI::Web::join_cust_main('cust_credit') .
$where;
my $sql_query = {
@@ -121,8 +121,8 @@ my $sql_query = {
'hashref' => {},
'extra_sql' => $where,
'addl_from' => 'LEFT JOIN cust_credit USING ( crednum )
- LEFT JOIN cust_refund USING ( refundnum )
- LEFT JOIN cust_main ON ( cust_credit.custnum = cust_main.custnum )',
+ LEFT JOIN cust_refund USING ( refundnum )'.
+ FS::UI::Web::join_cust_main('cust_credit')
};
#my $cust_credit_link = sub {