diff options
author | ivan <ivan> | 2008-09-10 08:34:32 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-09-10 08:34:32 +0000 |
commit | 96f1d947b394cb96690f5fde2f91f3efcd21dc21 (patch) | |
tree | fd6b8dc32bf71f19237e023af353569d7c1ed288 /httemplate/search | |
parent | f5651a3f5978a89f208a861844d014217d4c31e8 (diff) |
add re-FTP reprint, RT#create-me-tommorow-for-enet
Diffstat (limited to 'httemplate/search')
-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 2860f7a..d22c744 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> |