--- /dev/null
+namespace('kivi.Dunning', function(ns) {
+ ns.check_invoice_selection = function() {
+ if ($('[name^=active_]:checked').length > 0)
+ return true;
+
+ alert(kivi.t8('No invoices have been selected.'));
+ return false;
+ };
+
+ ns.enable_disable_language_id = function() {
+ $('select[name="language_id"]').prop('disabled', !$('#force_lang').prop('checked'));
+ };
+
+ $(function() {
+ $('#force_lang').click(kivi.Dunning.enable_disable_language_id);
+ kivi.Dunning.enable_disable_language_id();
+ });
+});
'Out of balance transaction!' => 'Buchung ist nicht ausgeglichen!',
'Out of balance!' => 'Summen stimmen nicht überein!',
'Output Number Format' => 'Zahlenformat (Ausgabe)',
+ 'Overdue invoices' => 'Überfällige Rechnungen',
'Overdue sales quotations and requests for quotations' => 'Überfällige Angebote und Preisanfragen',
'Override' => 'Override',
'Override invoice language' => 'Diese Sprache verwenden',
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/dunning.js"></script>
- <p>[% 'The columns "Dunning Duedate", "Total Fees" and "Interest" show data for the previous dunning created for this invoice.' | $T8 %]</p>
+ <form name="Form" method="post" action="dn.pl" id="form">
- <form name="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("Overdue invoices") %]</h2>
+
+ <p>[% 'The columns "Dunning Duedate", "Total Fees" and "Interest" show data for the previous dunning created for this invoice.' | $T8 %]</p>
<table width="100%" id="dunning_invoice_list">
<th class="listheading" colspan="2">[% 'Current / Next Level' | $T8 %]</th>
[% END %]
</table>
- <hr size=3 noshade>
-
- <input type="checkbox" id='force_lang' name="force_lang" size="6" value="1">
- [% 'Override invoice language' | $T8 %]
- [% PRINT_OPTIONS %]
-
- <br>
-
<input name="rowcount" type="hidden" value="[% HTML.escape(rowcount) %]">
<input name="groupinvoices" type="hidden" value="[% HTML.escape(groupinvoices) %]">
[% UNLESS DEBUG_DUNNING %]onclick="this.disabled=true; this.value='[% 'The dunning process started' | $T8 %]'; document.Form.submit()"[% END %]>
</form>
- <script type='text/javascript'>
- $(function() {
- $("select[name='language_id']").prop('disabled', $('#force_lang').prop('checked'));
- $('#force_lang').checkall('select[name="language_id"]', 'disabled');
- });
- </script>