[freeside-commits] freeside/httemplate/search report_receivables.cgi, 1.51, 1.52

Mark Wells mark at wavetail.420.am
Wed May 19 18:33:10 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv8034/httemplate/search

Modified Files:
	report_receivables.cgi 
Log Message:
RT#7266: aging report "as of" date now limits applied payments

Index: report_receivables.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_receivables.cgi,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -w -d -r1.51 -r1.52
--- report_receivables.cgi	1 Apr 2010 04:43:55 -0000	1.51
+++ report_receivables.cgi	20 May 2010 01:33:08 -0000	1.52
@@ -16,7 +16,7 @@
 #Example:
 #
 # my $balance = balance(
-#   $start, $end, 
+#   $start, $end, $offset,
 #   'no_as'  => 1, #set to true when using in a WHERE clause (supress AS clause)
 #                 #or 0 / omit when using in a SELECT clause as a column
 #                 #  ("AS balance_$start_$end")
@@ -44,7 +44,8 @@
 
   #$opt{'unapplied_date'} = 1;
 
-  FS::cust_main->balance_date_sql( $start, $end, 'unapplied_date'=>1,);
+  FS::cust_main->balance_date_sql( $start, $end, 'unapplied_date'=>1,
+           'cutoff' => "( $str2time now() $closing - ".$offset * 86400 . ')' );
 
 }
 



More information about the freeside-commits mailing list