add re-FTP reprint, RT#create-me-tommorow-for-enet
[freeside.git] / httemplate / search / cust_bill.html
index 2860f7a..d22c744 100755 (executable)
@@ -188,7 +188,7 @@ my $html_init = join("\n", map {
  qq!<FORM NAME="${_}form">!,
  ( map qq!<INPUT TYPE="hidden" NAME="$_" VALUE="$search{$_}">!, keys %search ),
  qq!</FORM>!
-} qw( print_ email_ fax_ ) ). 
+} qw( print_ email_ fax_ ftp_ ) ). 
 
 '<SCRIPT TYPE="text/javascript">
 
@@ -210,6 +210,12 @@ function confirm_fax_process() {
   }
   fax_process();
 }
+function confirm_ftp_process() {
+  if ( ! confirm("Are you sure you want to re-FTP these invoices?") ) {
+    return;
+  }
+  ftp_process();
+}
 
 </SCRIPT>';
 
@@ -225,6 +231,10 @@ if ( $FS::CurrentUser::CurrentUser->access_right('Resend invoices') ) {
   push @$menubar, 'Fax these invoices' =>
                     "javascript:confirm_fax_process()"
     if $conf->exists('hylafax');
+
+  push @$menubar, 'FTP these invoices' =>
+                    "javascript:confirm_ftp_process()"
+    if $conf->exists('cust_bill-ftpformat');
 }
 
 </%init>