[freeside-commits] freeside/httemplate/search cust_pkg.cgi, 1.59.2.3, 1.59.2.4
Mark Wells
mark at wavetail.420.am
Wed Feb 24 21:49:40 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv30146/search
Modified Files:
Tag: FREESIDE_1_9_BRANCH
cust_pkg.cgi
Log Message:
RT#7132: bulk increment package bill dates
Index: cust_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_pkg.cgi,v
retrieving revision 1.59.2.3
retrieving revision 1.59.2.4
diff -u -d -r1.59.2.3 -r1.59.2.4
--- cust_pkg.cgi 20 Dec 2009 06:53:11 -0000 1.59.2.3
+++ cust_pkg.cgi 25 Feb 2010 05:49:38 -0000 1.59.2.4
@@ -257,18 +257,29 @@
my $extra_choices = sub {
my $query = shift;
+ my $text = '';
- return '' unless
- $FS::CurrentUser::CurrentUser->access_right('Bulk change customer packages');
-
- '<BR><BR>'.
- include( '/elements/popup_link.html',
- 'label' => 'Change these packages',
- 'action' => "${p}misc/bulk_change_pkg.cgi?$query",
- 'actionlabel' => 'Change Packages',
- 'width' => 763,
- 'height' => 336,
- );
+ if( $FS::CurrentUser::CurrentUser->access_right('Bulk change customer packages') ) {
+ $text .= '<BR><BR>'.
+ include( '/elements/popup_link.html',
+ 'label' => 'Change these packages',
+ 'action' => "${p}misc/bulk_change_pkg.cgi?$query",
+ 'actionlabel' => 'Change Packages',
+ 'width' => 569,
+ 'height' => 210,
+ );
+ if( $FS::CurrentUser::CurrentUser->access_right('Edit customer package dates') ) {
+ $text .= '<BR>'.
+ include( '/elements/popup_link.html',
+ 'label' => 'Increment next bill date',
+ 'action' => "${p}misc/bulk_pkg_increment_bill.cgi?$query",
+ 'actionlabel' => 'Increment Bill Date',
+ 'width' => 569,
+ 'height' => 210,
+ );
+ }
+ }
+ return $text;
};
</%init>
More information about the freeside-commits
mailing list