[freeside-commits] freeside/httemplate/elements menu.html, 1.3, 1.4 select-cust_pkg-status.html, NONE, 1.1 tr-select-cust_pkg-status.html, NONE, 1.1 tr-select-cust-fields.html, NONE, 1.1 select-cust-fields.html, NONE, 1.1

Ivan,,, ivan at wavetail.420.am
Mon Jun 19 01:05:30 PDT 2006


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail:/tmp/cvs-serv13210/httemplate/elements

Modified Files:
	menu.html 
Added Files:
	select-cust_pkg-status.html tr-select-cust_pkg-status.html 
	tr-select-cust-fields.html select-cust-fields.html 
Log Message:
add ability to select specific package defs. and package status to package report for qis

--- NEW FILE: tr-select-cust-fields.html ---
<%
  my( $cust_fields, %opt ) = @_;

  use FS::ConfDefaults;
  $opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ];

%>

<TR>
  <TD ALIGN="right"><%= $opt{'label'} || 'Customer fields' %></TD>
  <TD>
    <%= include( '/elements/select-cust-fields.html', $cust_fields, %opt ) %>
  </TD>
</TR>

--- NEW FILE: tr-select-cust_pkg-status.html ---
<%
  my( $status, %opt ) = @_;

  $opt{'statuses'} ||= [ FS::cust_pkg->statuses() ]; # { disabled=>'' } )

%>

<TR>
  <TD ALIGN="right"><%= $opt{'label'} || 'Status' %></TD>
  <TD>
    <%= include( '/elements/select-cust_pkg-status.html', $status, %opt ) %>
  </TD>
</TR>

--- NEW FILE: select-cust_pkg-status.html ---
<%
  my( $status, %opt ) = @_;

  $opt{'statuses'} ||= [ FS::cust_pkg->statuses() ]; # { disabled=>'' } )

%>

<SELECT NAME="status">

  <OPTION VALUE="">all

  <% foreach my $status ( @{ $opt{'statuses'} } ) { %>

       <OPTION VALUE="<%= $status %>"><%= $status %>

  <% } %>

</SELECT>


--- NEW FILE: select-cust-fields.html ---
<%
  my( $cust_fields, %opt ) = @_;

  use FS::ConfDefaults;
  $opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ];

  tie my %hash, 'Tie::IxHash', @{ $opt{'avail_fields'} };

%>

<SELECT NAME="cust_fields">

  <OPTION VALUE="">(configured default)

  <% 
     foreach my $value ( keys %hash ) { %>

       <OPTION VALUE="<%= $value %>"><%= $hash{$value} %>

  <% } %>

</SELECT>


Index: menu.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/menu.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- menu.html	8 Jun 2006 10:32:46 -0000	1.3
+++ menu.html	19 Jun 2006 08:05:28 -0000	1.4
@@ -85,7 +85,7 @@
     'All customer packages' => [ $fsurl.'search/cust_pkg.cgi?pkgnum', 'List all customer packages', ],
     'Suspended customer packages' => [ $fsurl.'search/cust_pkg.cgi?magic=suspended', 'List suspended packages' ],
     'Customer packages with unconfigured services' => [ $fsurl.'search/cust_pkg.cgi?APKG_pkgnum', 'List packages which have provisionable services' ],
-    'By next bill date' => [ $fsurl.'search/cust_pkg_report.cgi', 'Search packages by next bill date' ],
+    'Advanced package reports' => [ $fsurl.'search/report_cust_pkg.html', 'by agent, date range, status, package definition' ],
   ;
 
   tie my %report_financial, 'Tie::IxHash', 
@@ -264,7 +264,7 @@
 
        if ( ref($url_or_submenu) ) {
 
-         warn $item;
+         #warn $item;
 
          my( $subhtml, $submenuname ) = submenu($url_or_submenu, $item);
 



More information about the freeside-commits mailing list