$report->set_options_from_form();
+ $::request->layout->add_javascripts("kivi.Dunning.js");
$report->generate_with_headers();
$main::lxdebug->leave_sub();
[%- USE L %]
<input type="hidden" name="rowcount" value="[% rowcount %]">
- <p>
- <input type="checkbox" id='force_lang' name="force_lang" size="6" value="1">
- [% 'Override invoice language' | $T8 %]
- [% PRINT_OPTIONS %]
- </p>
-
<p>
[% 'Dunnings' | $T8 %]<br>
[% L.hidden_tag('action', 'dispatcher') %]
</p>
</form>
- <script type='text/javascript'>
- $(function() {
- $("select[name='language_id']").prop('disabled', !$('#force_lang').prop('checked'));
- $('#force_lang').checkall('select[name="language_id"]', 'disabled', 'inverted');
- });
- </script>
-[% USE HTML %] <script type="text/javascript" src="js/common.js"></script>
- <script type="text/javascript" src="js/dunning.js"></script>
-
+[% USE HTML %][%- USE LxERP -%][%- USE L -%]
<form method="post" action="dn.pl">
+ <h2>[% LxERP.t8("Print options") %]</h2>
+
+ [% L.checkbox_tag("force_lang", label=LxERP.t8('Override invoice language'), checked=force_lang) %]
+ [% PRINT_OPTIONS %]
+
+ <h2>[% LxERP.t8("Dunnings") %]</h2>
[% SET all_active = 1 %][% FOREACH row = DUNNINGS %][% IF !row.active %][% SET all_active = 0 %][% LAST %][% END %][% END %]
[% SET all_email = 1 %][% FOREACH row = DUNNINGS %][% IF !row.email %][% SET all_email = 0 %][% LAST %][% END %][% END %]
- <script type="text/javascript" src="js/common.js"></script>
- <script type="text/javascript" src="js/dunning.js"></script>
-
<form name="Form" method="post" action="dn.pl" id="form">
<h2>[% LxERP.t8("Print options") %]</h2>