diff options
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/search/elements/cust_main_dayranges.html | 2 | ||||
-rwxr-xr-x | httemplate/search/unapplied_cust_pay.html | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/search/elements/cust_main_dayranges.html b/httemplate/search/elements/cust_main_dayranges.html index c53e68016..45d605e6e 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 . ')' ); } |