From 569dbe716a5eb79f0f8e7216bb2baf27d40f60bf Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 12 Sep 2008 02:02:05 +0000 Subject: add billco respooling, not re-FTPing, RT#3971 --- httemplate/misc/spool_invoices.cgi | 9 +++++++++ httemplate/search/cust_bill.html | 13 ++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 httemplate/misc/spool_invoices.cgi (limited to 'httemplate') diff --git a/httemplate/misc/spool_invoices.cgi b/httemplate/misc/spool_invoices.cgi new file mode 100644 index 000000000..bfe24e6ea --- /dev/null +++ b/httemplate/misc/spool_invoices.cgi @@ -0,0 +1,9 @@ +<% $server->process %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Resend invoices'); + +my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::process_respool', $cgi; + + diff --git a/httemplate/search/cust_bill.html b/httemplate/search/cust_bill.html index d22c74483..6f440db7e 100755 --- a/httemplate/search/cust_bill.html +++ b/httemplate/search/cust_bill.html @@ -188,7 +188,7 @@ my $html_init = join("\n", map { qq!
!, ( map qq!!, keys %search ), qq!
! -} qw( print_ email_ fax_ ftp_ ) ). +} qw( print_ email_ fax_ ftp_ spool_ ) ). ''; @@ -235,6 +241,11 @@ if ( $FS::CurrentUser::CurrentUser->access_right('Resend invoices') ) { push @$menubar, 'FTP these invoices' => "javascript:confirm_ftp_process()" if $conf->exists('cust_bill-ftpformat'); + + push @$menubar, 'Spool these invoices' => + "javascript:confirm_spool_process()" + if $conf->exists('cust_bill-spoolformat'); + } -- cgit v1.2.1