[freeside-commits] freeside/httemplate/search report_receivables.html, 1.4.2.2, 1.4.2.3 report_receivables.cgi, 1.36.2.7, 1.36.2.8
Ivan,,,
ivan at wavetail.420.am
Thu Apr 16 18:19:40 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv30168
Modified Files:
Tag: FREESIDE_1_7_BRANCH
report_receivables.html report_receivables.cgi
Log Message:
add customer status to receivables report selection, hopefully help enet, RT#5187
Index: report_receivables.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_receivables.html,v
retrieving revision 1.4.2.2
retrieving revision 1.4.2.3
diff -u -d -r1.4.2.2 -r1.4.2.3
--- report_receivables.html 9 Nov 2007 03:26:45 -0000 1.4.2.2
+++ report_receivables.html 17 Apr 2009 01:19:38 -0000 1.4.2.3
@@ -11,6 +11,11 @@
</TR>
<% include( '/elements/tr-select-agent.html' ) %>
+
+ <% include( '/elements/tr-select-cust_main-status.html',
+ 'label' => 'Customer Status'
+ )
+ %>
<TR>
<TD ALIGN="right">Customers</TD>
Index: report_receivables.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_receivables.cgi,v
retrieving revision 1.36.2.7
retrieving revision 1.36.2.8
diff -u -d -r1.36.2.7 -r1.36.2.8
--- report_receivables.cgi 31 Jul 2008 23:32:09 -0000 1.36.2.7
+++ report_receivables.cgi 17 Apr 2009 01:19:38 -0000 1.36.2.8
@@ -116,6 +116,15 @@
push @where, "agentnum = $agentnum";
}
+#status (false laziness w/cust_main::search_sql
+
+#prospect active inactive suspended cancelled
+if ( grep { $cgi->param('status') eq $_ } FS::cust_main->statuses() ) {
+ my $method = $cgi->param('status'). '_sql';
+ #push @where, $class->$method();
+ push @where, FS::cust_main->$method();
+}
+
#here is the agent virtualization
push @where, $FS::CurrentUser::CurrentUser->agentnums_sql;
More information about the freeside-commits
mailing list