projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix inflated advertising source numbers
[freeside.git]
/
httemplate
/
browse
/
part_referral.cgi
diff --git
a/httemplate/browse/part_referral.cgi
b/httemplate/browse/part_referral.cgi
index
69bb95a
..
3f59abc
100755
(executable)
--- a/
httemplate/browse/part_referral.cgi
+++ b/
httemplate/browse/part_referral.cgi
@@
-23,7
+23,8
@@
Where a customer heard about your service. Tracked for informational purposes.
;
my $sth = dbh->prepare("SELECT COUNT(*) FROM h_cust_main
- WHERE refnum = ?
+ WHERE history_action = 'insert'
+ AND refnum = ?
AND history_date > ? ")
or die dbh->errstr;
%>