summaryrefslogtreecommitdiff
path: root/httemplate/search/cust_bill.html
diff options
context:
space:
mode:
authorivan <ivan>2008-09-12 02:02:01 +0000
committerivan <ivan>2008-09-12 02:02:01 +0000
commitfaa9e03809537153822776b375d3add5de7c7800 (patch)
treeab67ad798e40db68c9ed392afa0e0adc1ef758dc /httemplate/search/cust_bill.html
parentb800a3e44db3b68e72933242dae6d95b6968fd52 (diff)
add billco respooling, not re-FTPing, RT#3971
Diffstat (limited to 'httemplate/search/cust_bill.html')
-rwxr-xr-xhttemplate/search/cust_bill.html13
1 files changed, 12 insertions, 1 deletions
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!<FORM NAME="${_}form">!,
( map qq!<INPUT TYPE="hidden" NAME="$_" VALUE="$search{$_}">!, keys %search ),
qq!</FORM>!
-} qw( print_ email_ fax_ ftp_ ) ).
+} qw( print_ email_ fax_ ftp_ spool_ ) ).
'<SCRIPT TYPE="text/javascript">
@@ -216,6 +216,12 @@ function confirm_ftp_process() {
}
ftp_process();
}
+function confirm_spool_process() {
+ if ( ! confirm("Are you sure you want to re-spool these invoices?") ) {
+ return;
+ }
+ spool_process();
+}
</SCRIPT>';
@@ -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');
+
}
</%init>