diff options
Diffstat (limited to 'httemplate/search/report_future_autobill.html')
-rw-r--r-- | httemplate/search/report_future_autobill.html | 57 |
1 files changed, 36 insertions, 21 deletions
diff --git a/httemplate/search/report_future_autobill.html b/httemplate/search/report_future_autobill.html index 1a0c9f48a..ccde299e9 100644 --- a/httemplate/search/report_future_autobill.html +++ b/httemplate/search/report_future_autobill.html @@ -3,40 +3,55 @@ Display date selector for the future_autobill.html report </%doc> -<% include('/elements/header.html', 'Future Auto-Bill Transactions' ) %> +<% include('/elements/header.html', $report_title ) %> -<FORM ACTION="future_autobill.html" METHOD="GET"> -<TABLE> -<& /elements/tr-input-date-field.html, - { - name => 'target_date', - value => $target_date, - label => emt('Target billing date').': ', - required => 1 - } -&> +% if ( FS::TaxEngine->new->info->{batch} ) { -<& /elements/tr-checkbox.html, - 'label' => emt('Multiple billing dates (slow)').': ', - 'field' => 'multiple_billing_dates', - 'value' => '1', -&> + <div style="font-color: red"> + NOTE: This report is disabled due to tax engine configuration + </div> -</TABLE> +% } else { -<BR> -<INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>"> + <FORM ACTION="future_autobill.html" METHOD="GET"> + <TABLE> + <& /elements/tr-input-date-field.html, + { + name => 'target_date', + value => $target_date, + label => emt('Target billing date').': ', + required => 1 + } + &> -</FORM> + <% include('/elements/tr-select-agent.html', + 'label' => 'For agent: ', + 'disable_empty' => 0, + ) + %> + + </TABLE> + + <BR> + + <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>"> + + </FORM> + +% } <% 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->from_epoch(epoch=>(time()+86400))->mdy('/'); +my $target_date = DateTime->now->add(days => 1)->mdy('/'); +my $report_title = FS::cust_payby->future_autobill_report_title; </%init> + |