From 5e99c8bf1671bcfdf3597f8bbdaf49621141d237 Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 11 Jun 2010 21:18:11 +0000 Subject: RT#7266: continue fixing aging reports --- httemplate/search/elements/cust_main_dayranges.html | 2 +- httemplate/search/unapplied_cust_pay.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'httemplate') diff --git a/httemplate/search/elements/cust_main_dayranges.html b/httemplate/search/elements/cust_main_dayranges.html index 476f138e9..aa133883b 100644 --- a/httemplate/search/elements/cust_main_dayranges.html +++ b/httemplate/search/elements/cust_main_dayranges.html @@ -145,7 +145,7 @@ unless ( $cgi->param('all_customers') ) { } push @where, - call_range_sub($range_sub, $days + $offset, 0, 'no_as'=>1). ' > 0'; # != 0'; + call_range_sub($range_sub, $days, 0, 'offset' => $offset, 'no_as'=>1). ' > 0'; # != 0'; } if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) { diff --git a/httemplate/search/unapplied_cust_pay.html b/httemplate/search/unapplied_cust_pay.html index 73361c00b..161c6509e 100755 --- a/httemplate/search/unapplied_cust_pay.html +++ b/httemplate/search/unapplied_cust_pay.html @@ -23,7 +23,8 @@ sub unapplied_payments { "( $str2time now() $closing - ".($end + $offset) * 86400 . ' )' : ''; - FS::cust_main->unapplied_payments_date_sql( $start, $end ); + FS::cust_main->unapplied_payments_date_sql( $start, $end, + 'cutoff' => "( $str2time now() $closing - ".$offset * 86400 . ')' ); } -- cgit v1.2.1