Revision 71c23cdf
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/dn.pl | ||
---|---|---|
153 | 153 |
'no_html' => 1, |
154 | 154 |
'no_opendocument' => 1,); |
155 | 155 |
|
156 |
$::request->layout->add_javascripts("kivi.Dunning.js"); |
|
156 | 157 |
$form->header(); |
157 | 158 |
print $form->parse_html_template("dunning/show_invoices"); |
158 | 159 |
|
js/kivi.Dunning.js | ||
---|---|---|
1 |
namespace('kivi.Dunning', function(ns) { |
|
2 |
ns.check_invoice_selection = function() { |
|
3 |
if ($('[name^=active_]:checked').length > 0) |
|
4 |
return true; |
|
5 |
|
|
6 |
alert(kivi.t8('No invoices have been selected.')); |
|
7 |
return false; |
|
8 |
}; |
|
9 |
|
|
10 |
ns.enable_disable_language_id = function() { |
|
11 |
$('select[name="language_id"]').prop('disabled', !$('#force_lang').prop('checked')); |
|
12 |
}; |
|
13 |
|
|
14 |
$(function() { |
|
15 |
$('#force_lang').click(kivi.Dunning.enable_disable_language_id); |
|
16 |
kivi.Dunning.enable_disable_language_id(); |
|
17 |
}); |
|
18 |
}); |
locale/de/all | ||
---|---|---|
1998 | 1998 |
'Out of balance transaction!' => 'Buchung ist nicht ausgeglichen!', |
1999 | 1999 |
'Out of balance!' => 'Summen stimmen nicht überein!', |
2000 | 2000 |
'Output Number Format' => 'Zahlenformat (Ausgabe)', |
2001 |
'Overdue invoices' => 'Überfällige Rechnungen', |
|
2001 | 2002 |
'Overdue sales quotations and requests for quotations' => 'Überfällige Angebote und Preisanfragen', |
2002 | 2003 |
'Override' => 'Override', |
2003 | 2004 |
'Override invoice language' => 'Diese Sprache verwenden', |
templates/webpages/dunning/show_invoices.html | ||
---|---|---|
8 | 8 |
<script type="text/javascript" src="js/common.js"></script> |
9 | 9 |
<script type="text/javascript" src="js/dunning.js"></script> |
10 | 10 |
|
11 |
<p>[% 'The columns "Dunning Duedate", "Total Fees" and "Interest" show data for the previous dunning created for this invoice.' | $T8 %]</p>
|
|
11 |
<form name="Form" method="post" action="dn.pl" id="form">
|
|
12 | 12 |
|
13 |
<form name="Form" method="post" action="dn.pl"> |
|
13 |
<h2>[% LxERP.t8("Print options") %]</h2> |
|
14 |
|
|
15 |
[% L.checkbox_tag("force_lang", label=LxERP.t8('Override invoice language'), checked=force_lang) %] |
|
16 |
[% PRINT_OPTIONS %] |
|
17 |
|
|
18 |
<h2>[% LxERP.t8("Overdue invoices") %]</h2> |
|
19 |
|
|
20 |
<p>[% 'The columns "Dunning Duedate", "Total Fees" and "Interest" show data for the previous dunning created for this invoice.' | $T8 %]</p> |
|
14 | 21 |
|
15 | 22 |
<table width="100%" id="dunning_invoice_list"> |
16 | 23 |
<th class="listheading" colspan="2">[% 'Current / Next Level' | $T8 %]</th> |
... | ... | |
80 | 87 |
[% END %] |
81 | 88 |
</table> |
82 | 89 |
|
83 |
<hr size=3 noshade> |
|
84 |
|
|
85 |
<input type="checkbox" id='force_lang' name="force_lang" size="6" value="1"> |
|
86 |
[% 'Override invoice language' | $T8 %] |
|
87 |
[% PRINT_OPTIONS %] |
|
88 |
|
|
89 |
<br> |
|
90 |
|
|
91 | 90 |
<input name="rowcount" type="hidden" value="[% HTML.escape(rowcount) %]"> |
92 | 91 |
<input name="groupinvoices" type="hidden" value="[% HTML.escape(groupinvoices) %]"> |
93 | 92 |
|
... | ... | |
100 | 99 |
[% UNLESS DEBUG_DUNNING %]onclick="this.disabled=true; this.value='[% 'The dunning process started' | $T8 %]'; document.Form.submit()"[% END %]> |
101 | 100 |
|
102 | 101 |
</form> |
103 |
<script type='text/javascript'> |
|
104 |
$(function() { |
|
105 |
$("select[name='language_id']").prop('disabled', $('#force_lang').prop('checked')); |
|
106 |
$('#force_lang').checkall('select[name="language_id"]', 'disabled'); |
|
107 |
}); |
|
108 |
</script> |
Auch abrufbar als: Unified diff
Mahnungen: Funktion »Diese Sprache verwenden« gefixt
Wenn die Checkbox angehakt ist, so soll die Benutzer*in die Möglichkeit
haben, über die Druckoptionen einen Sprache für alle zu erzeugenden
Mahnungen auszuwählen. Ist die Checkbox aus, so wird die Sprache des
Kunden der jeweiligen Mahnung genommen, und dann muss die Sprachauswahl
deaktiviert werden.