summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-04-27 13:48:58 -0400
committerChristopher Burger <burgerc@freeside.biz>2018-04-30 10:21:13 -0400
commit1e0b0cfabb4503438a3de0597db7562cb71327d7 (patch)
treed0ab7e43f26ed653a2c59321bfb74da32615a83b
parent443cf5e68caa7080b86a8ee2140982398fa3eb0c (diff)
RT# 77160 - fixed report error when multiple canceled packages had they same datetime
-rw-r--r--httemplate/search/cust_timespan.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/search/cust_timespan.html b/httemplate/search/cust_timespan.html
index a380b78ab..f5684251a 100644
--- a/httemplate/search/cust_timespan.html
+++ b/httemplate/search/cust_timespan.html
@@ -88,7 +88,7 @@ my $cancel_date = 'select max(cancel) from cust_pkg where cust_pkg.custnum = cus
my $cancel_reason = 'select reason.reason from cust_pkg
left join cust_pkg_reason on (cust_pkg.pkgnum = cust_pkg_reason.pkgnum)
left join reason on (cust_pkg_reason.reasonnum = reason.reasonnum)
- where cust_pkg.custnum = cust_main.custnum and cust_pkg_reason.date = ('.$cancel_date.')
+ where cust_pkg.custnum = cust_main.custnum and cust_pkg_reason.date = ('.$cancel_date.') limit 1
';
my @header = ( '#', 'Name', 'Address', 'Phone', 'Email', 'Active Date', 'Cancelled Date', 'Reason', 'Active Days' );