%doc>
Display pre-report page for the Future Auto Bill Transactions report
Report runs in the queue. Once the report is generated, user is
redirected to the report results.
%doc>
<% include('/elements/header.html', $report_title ) %>
% if ( FS::TaxEngine->new->info->{batch} ) {
NOTE: This report is disabled due to tax engine configuration
% } else {
<% include( '/elements/progress-init.html',
'future_autobill',
[ qw( agentnum target_date ) ],
'report_future_autobill-queued_job.html',
)
%>
% }
<% include('/elements/footer.html') %>
<%init>
use FS::cust_payby;
use FS::CurrentUser;
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
my $target_date = DateTime->now->add(days => 1)->mdy('/');
my $report_title = FS::cust_payby->future_autobill_report_title;
%init>