[freeside-commits] freeside/httemplate/misc rate_edit_excel.html, 1.2, 1.2.2.1

Ivan,,, ivan at wavetail.420.am
Sun Mar 21 16:13:28 PDT 2010


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

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	rate_edit_excel.html 
Log Message:
connection fee for initial N seconds support, RT#7018

Index: rate_edit_excel.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/rate_edit_excel.html,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -w -d -r1.2 -r1.2.2.1
--- rate_edit_excel.html	5 May 2009 10:40:15 -0000	1.2
+++ rate_edit_excel.html	21 Mar 2010 23:13:26 -0000	1.2.2.1
@@ -1,5 +1,9 @@
 <% include('/elements/header.html', 'Edit rates with Excel' ) %>
 
+% if ( $have_conn ) { 
+  <FONT COLOR="#FF0000">WARNING: This functionality does not yet preserve connection charges.</FONT><BR><BR>
+% }
+
 <% include( '/elements/form-file_upload.html',
               'name'      => 'RateImportForm',
               'action'    => 'process/rate_edit_excel.html',
@@ -58,4 +62,9 @@
 die "access denied"
   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
 
+my $sth = dbh->prepare('SELECT COUNT(*) FROM rate_detail WHERE conn_charge > 0 OR conn_sec > 0 LIMIT 1')
+  or die dbh->errstr;
+$sth->execute or die $sth->errstr;
+my $have_conn = $sth->fetchrow_arrayref->[0];
+
 </%init>



More information about the freeside-commits mailing list