3 Display pre-report page for the Future Auto Bill Transactions report
5 Report runs in the queue. Once the report is generated, user is
6 redirected to the report results.
9 <% include('/elements/header.html', $report_title ) %>
12 % if ( FS::TaxEngine->new->info->{batch} ) {
14 <div style="font-color: red">
15 NOTE: This report is disabled due to tax engine configuration
20 <FORM NAME="future_autobill" ID="future_autobill">
22 <& /elements/tr-input-date-field.html,
24 name => 'target_date',
25 value => $target_date,
26 label => emt('Target billing date').': ',
31 <% include('/elements/tr-select-agent.html',
32 'label' => 'For agent: ',
39 <INPUT ID="future_autobill_submit" TYPE="submit" VALUE="<% mt('Get Report') |h %>">
42 <% include( '/elements/progress-init.html',
44 [ qw( agentnum target_date ) ],
45 'report_future_autobill-queued_job.html',
49 <script type="text/javascript">
50 $('#future_autobill').submit( function( event ) {
51 $('#future_autobill').prop( 'disabled', true );
52 $('#future_autobill_submit').prop( 'disabled', true );
53 event.preventDefault();
60 <% include('/elements/footer.html') %>
67 unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
69 my $target_date = DateTime->now->add(days => 1)->mdy('/');
70 my $report_title = FS::cust_payby->future_autobill_report_title;