X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Funapplied_cust_pay.html;h=f5c2bf0f993a7cdb252af4e154c567aaccedc80e;hp=8d064d174fc00be8de85825d3d57716dfd56fd2b;hb=ff27c3f36240aee48ed50153dd5d8fe3ac3f2443;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2 diff --git a/httemplate/search/unapplied_cust_pay.html b/httemplate/search/unapplied_cust_pay.html index 8d064d174..f5c2bf0f9 100755 --- a/httemplate/search/unapplied_cust_pay.html +++ b/httemplate/search/unapplied_cust_pay.html @@ -1,9 +1,8 @@ -<% include( 'elements/cust_main_dayranges.html', +<& elements/cust_main_dayranges.html, #'title' => 'Prepaid Balance Aging Summary', #??? 'title' => 'Unapplied Payments Aging Summary', 'range_sub' => \&unapplied_payments, - ) -%> +&> <%init> die "access denied" @@ -13,16 +12,11 @@ die "access denied" <%once> sub unapplied_payments { - my($start, $end, %opt) = @_; - - #handle start and end ranges (86400 = 24h * 60m * 60s) - my $str2time = str2time_sql; - my $closing = str2time_sql_closing; - $start = $start ? "( $str2time now() $closing - ".($start * 86400). ' )' : ''; - $end = $end ? "( $str2time now() $closing - ".($end * 86400). ' )' : ''; - - FS::cust_main->unapplied_payments_date_sql( $start, $end ); + my($start, $end, $cutoff) = @_; + FS::cust_main->unapplied_payments_date_sql( $start, $end, + 'cutoff' => $cutoff, + ); }