summaryrefslogtreecommitdiff
path: root/httemplate/search/cust_credit.html
diff options
context:
space:
mode:
authorivan <ivan>2005-03-04 12:57:53 +0000
committerivan <ivan>2005-03-04 12:57:53 +0000
commitf8e7f53109f36e3c649dc509b61c75c3c44fb519 (patch)
tree58219df0f4c11f2cd0ca901edfc2cf20777e8b83 /httemplate/search/cust_credit.html
parentb1fc20ef3b68a8536163fbb17c57bca15555f3c4 (diff)
report correctly even if the customer record has somehow been removed...
Diffstat (limited to 'httemplate/search/cust_credit.html')
-rwxr-xr-xhttemplate/search/cust_credit.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/search/cust_credit.html b/httemplate/search/cust_credit.html
index a3f88cc21..85128bca2 100755
--- a/httemplate/search/cust_credit.html
+++ b/httemplate/search/cust_credit.html
@@ -41,14 +41,14 @@
: '';
my $count_query = 'SELECT COUNT(*), SUM(amount) '.
- 'FROM cust_credit JOIN cust_main USING ( custnum ) '.
+ 'FROM cust_credit LEFT JOIN cust_main USING ( custnum ) '.
$where;
my $sql_query = {
'table' => 'cust_credit',
'hashref' => {},
'extra_sql' => $where,
- 'addl_from' => 'JOIN cust_main USING ( custnum )',
+ 'addl_from' => 'LEFT JOIN cust_main USING ( custnum )',
};
my $clink = [ "${p}view/cust_main.cgi?", 'custnum' ];