diff options
| author | mark <mark> | 2010-07-22 07:25:48 +0000 |
|---|---|---|
| committer | mark <mark> | 2010-07-22 07:25:48 +0000 |
| commit | 64808a397a0a0935069d65c48aba9afaeb4fafd2 (patch) | |
| tree | 6ce15f441f75b0360f3388c56f9d1419d90105fa /httemplate/search/unapplied_cust_pay.html | |
| parent | 152d5357089a71f637530054b71f21c36fdfe01b (diff) | |
Fix weird behavior of aging report, RT#9234
Diffstat (limited to 'httemplate/search/unapplied_cust_pay.html')
| -rwxr-xr-x | httemplate/search/unapplied_cust_pay.html | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/httemplate/search/unapplied_cust_pay.html b/httemplate/search/unapplied_cust_pay.html index 161c6509e..e232291fe 100755 --- a/httemplate/search/unapplied_cust_pay.html +++ b/httemplate/search/unapplied_cust_pay.html @@ -13,19 +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 . ' )' - : ''; + my($start, $end, $cutoff) = @_; FS::cust_main->unapplied_payments_date_sql( $start, $end, - 'cutoff' => "( $str2time now() $closing - ".$offset * 86400 . ')' ); - + 'cutoff' => $cutoff, + ); } </%once> |
