cope with poor tax liability report performance by allowing queuing of reports RT...
[freeside.git] / httemplate / search / report_queued_newtax.cgi
diff --git a/httemplate/search/report_queued_newtax.cgi b/httemplate/search/report_queued_newtax.cgi
new file mode 100755 (executable)
index 0000000..1d5813e
--- /dev/null
@@ -0,0 +1,16 @@
+<% include("/elements/header.html", "Queue Tax Report") %>
+<% include("/elements/error.html") %>
+% unless ($error) {
+  <CENTER>
+  Report queued.  Check the job queue for status.
+  </CENTER>
+% }
+<% include("/elements/footer.html") %>
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
+
+my $error = FS::tax_rate::queue_liability_report($cgi);
+
+</%init>