[freeside-commits] freeside/httemplate/search cust_main.html, 1.6.2.5, 1.6.2.6

Ivan,,, ivan at wavetail.420.am
Mon Jun 16 20:36:11 PDT 2008


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

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	cust_main.html 
Log Message:
finish adding a feature to easily list all email addresses for an agent & send them email

Index: cust_main.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_main.html,v
retrieving revision 1.6.2.5
retrieving revision 1.6.2.6
diff -u -d -r1.6.2.5 -r1.6.2.6
--- cust_main.html	5 Jun 2008 10:36:43 -0000	1.6.2.5
+++ cust_main.html	17 Jun 2008 03:36:09 -0000	1.6.2.6
@@ -1,5 +1,6 @@
 <% include( 'elements/search.html',
                   'title'       => 'Customer Search Results', 
+                  'menubar'     => $menubar,
                   'name'        => 'customers',
                   'query'       => $sql_query,
                   'count_query' => $count_query,
@@ -30,11 +31,6 @@
                                    ],
               )
 %>
-<%once>
-
-my $link = [ "${p}view/cust_main.cgi?", 'custnum' ];
-
-</%once>
 <%init>
 
 die "access denied"
@@ -89,4 +85,23 @@
 my @extra_headers = @{ delete($sql_query->{'extra_headers'}) };
 my @extra_fields  = @{ delete($sql_query->{'extra_fields'})  };
 
+my $link = [ "${p}view/cust_main.cgi?", 'custnum' ];
+
+###
+# email links
+###
+
+my $menubar = [];
+
+if ( $FS::CurrentUser::CurrentUser->access_right('Bulk send customer notices') ) {
+
+  my $uri = new URI::URL;
+  $uri->query_form( \%search_hash );
+  my $query = $uri->query;
+
+  push @$menubar, 'Email a notice to these customers' =>
+                    "${p}misc/email-customers.html?$query",
+
+}
+
 </%init>



More information about the freeside-commits mailing list