2 <script type="text/javascript" src="js/common.js"></script>
3 <script type="text/javascript" src="js/dunning.js"></script>
5 <script type="text/javascript">
7 function enable_invoice_controls(enable) {
8 document.Form.AR.disabled = !enable;
9 document.Form.AR_amount_fee.disabled = !enable;
10 document.Form.AR_amount_interest.disabled = !enable;
15 <div class="listtop" width="100%">[% title %]</div>
17 <form method="post" action="dn.pl" name="Form">
22 <th class="listheading">Mahnlevel</th>
23 <th class="listheading">Mahnstufenbeschreibung</th>
24 <th class="listheading">Aktiviert?</th>
25 <th class="listheading">Auto. Versand?</th>
26 <th class="listheading">eMail-Versand?</th>
27 <th class="listheading">Fristsetzung</th>
28 <th class="listheading">Fällikeitsdatum +Tage</th>
29 <th class="listheading">Gebühr</th>
30 <th class="listheading">Zinssatz</th>
31 <th class="listheading">Druckvorlage</th>
34 [% SET odd = '1' %][% USE DUNNING_it = Iterator(DUNNING) %][% FOREACH row = DUNNING_it %]
35 <tr valign="top" class="listrow[% IF odd %]1[% SET odd = '0' %][% ELSE %]0[% SET odd = '1' %][% END %]">
37 <input type="hidden" name="dunning_level_[% DUNNING_it.count %]" value="[% DUNNING_it.count %]">
38 <input type="hidden" name="id_[% DUNNING_it.count %]" value="[% HTML.escape(row.id) %]">
39 [% DUNNING_it.count %]
42 <td><input name="dunning_description_[% DUNNING_it.count %]" value="[% HTML.escape(row.dunning_description) %]"></td>
43 <td><input type="checkbox" name="active_[% DUNNING_it.count %]" value="1" [% IF row.active %]checked[% END %]></td>
46 <input type="checkbox" name="email_[% DUNNING_it.count %]" value="1" [% IF row.email %]checked[% END %]>
47 <button type="button" onclick="set_email_window('email_subject_[% DUNNING_it.count %]', 'email_body_[% DUNNING_it.count %]', 'email_attachment_[% DUNNING_it.count %]')">
49 <input type="hidden" name="email_body_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_body) %]">
50 <input type="hidden" name="email_subject_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_subject) %]">
51 <input type="hidden" name="email_attachment_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_attachment) %]">
54 <td><input type="checkbox" name="auto_[% DUNNING_it.count %]" value="1" [% IF row.auto %]checked[% END %]></td>
55 <td><input name="payment_terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.payment_terms) %]"></td>
56 <td><input name="terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.terms) %]"></td>
57 <td><input name="fee_[% DUNNING_it.count %]" size="5" value="[% HTML.escape(row.fee) %]"></td>
58 <td><input name="interest_rate_[% DUNNING_it.count %]" size="4" value="[% HTML.escape(row.interest_rate) %]">%</td>
59 <td><input name="template_[% DUNNING_it.count %]" value="[% HTML.escape(row.template) %]"></td>
61 [% IF DUNNING_it.last %][% SET rowcount = DUNNING_it.size + 1 %][% END %]
64 <tr valign="top" class="listrow[% IF odd %]1[% ELSE %]0[% END %]">
66 <input type="hidden" name="dunning_level_[% rowcount %]" value="[% rowcount %]">
67 <input type="hidden" name="id_[% rowcount %]">
71 <td><input name="dunning_description_[% rowcount %]"></td>
72 <td><input type="checkbox" name="active_[% rowcount %]" value="1" checked></td>
75 <input type="checkbox" name="email_[% rowcount %]" value="1" checked>
76 <button type="button" onclick="set_email_window('email_subject_[% rowcount %]', 'email_body_[% rowcount %]', 'email_attachment_[% rowcount %]')">
78 <input type="hidden" name="email_body_[% rowcount %]">
79 <input type="hidden" name="email_subject_[% rowcount %]">
80 <input type="hidden" name="email_attachment_[% rowcount %]">
83 <td><input type="checkbox" name="auto_[% rowcount %]" value="1" checked></td>
84 <td><input name="payment_terms_[% rowcount %]" size="3"></td>
85 <td><input name="terms_[% rowcount %]" size="3"></td>
86 <td><input name="fee_[% rowcount %]" size="5"></td>
87 <td><input name="interest_rate_[% rowcount %]" size="4">%</td>
88 <td><input name="template_[% rowcount %]"></td>
92 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
97 <input type="checkbox" name="create_invoices_for_fees" id="create_invoices_for_fees"
98 [% IF create_invoices_for_fees %]checked[% END %]
99 value="1" onclick="enable_invoice_controls(this.checked);">
100 <label for="create_invoices_for_fees">Automatisches Erstellen von Debitorenrechnungen über Mahngebühren und Zinsen</label>
105 <th align="right">Konto für Gebühren</th>
107 <select name="AR_amount_fee" [% UNLESS create_invoices_for_fees %]disabled[% END %]>
108 [% FOREACH row = SELECT_AR_AMOUNT %]<option value="[% HTML.escape(row.id) %]" [% IF row.AR_amount_fee_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
115 <th align="right">Konto für Zinsen</th>
117 <select name="AR_amount_interest" [% UNLESS create_invoices_for_fees %]disabled[% END %]>
118 [% FOREACH row = SELECT_AR_AMOUNT %]<option value="[% HTML.escape(row.id) %]" [% IF row.AR_amount_interest_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
125 <th align="right">Buchen auf</th>
127 <select name="AR" [% UNLESS create_invoices_for_fees %]disabled[% END %]>
128 [% FOREACH row = SELECT_AR %]<option value="[% HTML.escape(row.id) %]" [% IF row.AR_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
135 <hr size="3" noshade>
137 <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
139 <input type="hidden" name="login" value="[% HTML.escape(login) %]">
140 <input type="hidden" name="password" value="[% HTML.escape(password) %]">
142 <input class="submit" type="submit" name="action" value="Speichern">