diff options
author | ivan <ivan> | 2008-09-10 08:34:30 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-09-10 08:34:30 +0000 |
commit | 096f208ab7e91fdf6391001a2e28c0a80374ee39 (patch) | |
tree | 96381a7280998d1a1b76137da2c3f4360a019032 /httemplate/search/cust_bill.html | |
parent | 44b5d849d7fb3af5ea1e2812097126633add0fd4 (diff) |
add re-FTP reprint, RT#create-me-tommorow-for-enet
Diffstat (limited to 'httemplate/search/cust_bill.html')
-rwxr-xr-x | httemplate/search/cust_bill.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/httemplate/search/cust_bill.html b/httemplate/search/cust_bill.html index 2860f7a4d..d22c74483 100755 --- a/httemplate/search/cust_bill.html +++ b/httemplate/search/cust_bill.html @@ -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> |