3 Display date selector for the future_autobill.html report
6 <% include('/elements/header.html', $report_title ) %>
9 % if ( FS::TaxEngine->new->info->{batch} ) {
11 <div style="font-color: red">
12 NOTE: This report is disabled due to tax engine configuration
17 <FORM ACTION="future_autobill.html" METHOD="GET">
19 <& /elements/tr-input-date-field.html,
21 name => 'target_date',
22 value => $target_date,
23 label => emt('Target billing date').': ',
32 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
38 <% include('/elements/footer.html') %>
44 unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
46 my $target_date = DateTime->now->add(days => 1)->mdy('/');
48 # Dynamic report title
50 my $card_count = FS::cust_payby->count_autobill_cards;
51 my $check_count = FS::cust_payby->count_autobill_checks;
52 if ( $card_count && $check_count ) {
53 $title_types = 'Card and Check';
54 } elsif ( $card_count ) {
55 $title_types = 'Card';
56 } elsif ( $check_count ) {
57 $title_types = 'Check';
60 my $report_title = sprintf(
61 'Upcoming Auto Bill %s Transactions',