diff options
author | ivan <ivan> | 2008-07-31 20:17:42 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-07-31 20:17:42 +0000 |
commit | 02b11d5feb7fff6f282c20530b74f57fb901b00f (patch) | |
tree | 8b7db308e0ff02d5cef3babc6b36383e3306601d | |
parent | 1f643e85b7edc08e481a8ea72a9ea97bf47599fd (diff) |
fix receivables report: credits/etc. should be limited by date like before, closes: Bug#3801
-rw-r--r-- | FS/FS/cust_main.pm | 2 | ||||
-rwxr-xr-x | httemplate/search/report_receivables.cgi | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index b9c2d66e0..e363f1bdd 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -5262,7 +5262,7 @@ Available options are: =item unapplied_date -set to true to disregard unapplied credits, payments and refunds outside the specified time period - by default the time period restriction only applies to invoices (useful for reporting (or is it?), probably a bad idea for event triggering) +set to true to disregard unapplied credits, payments and refunds outside the specified time period - by default the time period restriction only applies to invoices (useful for reporting, probably a bad idea for event triggering) =item total diff --git a/httemplate/search/report_receivables.cgi b/httemplate/search/report_receivables.cgi index 3e500065a..b2fbb4d3c 100755 --- a/httemplate/search/report_receivables.cgi +++ b/httemplate/search/report_receivables.cgi @@ -174,7 +174,7 @@ sub balance { $start = $start ? "( $str2time now() $closing - ".($start * 86400). ' )' : ''; $end = $end ? "( $str2time now() $closing - ".($end * 86400). ' )' : ''; - #$opt{'unapplied_date'} = 1; + $opt{'unapplied_date'} = 1; ( $opt{sum} ? 'SUM( ' : '' ). FS::cust_main->balance_date_sql( $start, $end, %opt ). |