X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Funapplied_cust_pay.html;h=e232291fe961ff215ddcc4f34b5c5d3cb01282b8;hb=e168ca3db2702bd9a540316cd9bd840238dd19ce;hp=73361c00b15000d9be6072ecdfe14e96e642c242;hpb=624b2d44625f69d71175c3348cae635d580c890b;p=freeside.git diff --git a/httemplate/search/unapplied_cust_pay.html b/httemplate/search/unapplied_cust_pay.html index 73361c00b..e232291fe 100755 --- a/httemplate/search/unapplied_cust_pay.html +++ b/httemplate/search/unapplied_cust_pay.html @@ -13,18 +13,11 @@ die "access denied" <%once> sub unapplied_payments { - my($start, $end, $offset) = @_; - - #handle start and end ranges (86400 = 24h * 60m * 60s) - my $str2time = str2time_sql; - my $closing = str2time_sql_closing; - $start = "( $str2time now() $closing - ".($start + $offset) * 86400 . ' )'; - $end = $end ? - "( $str2time now() $closing - ".($end + $offset) * 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, + ); }