Vorlagen zum Bearbeiten der Mahnungskonfiguration auf Template umgestellt.
[kivitendo-erp.git] / templates / webpages / dunning / edit_config_de.html
1 [% USE HTML %]<body>
2  <script type="text/javascript" src="js/common.js"></script>
3  <script type="text/javascript" src="js/dunning.js"></script>
4
5  <script type="text/javascript">
6   <!--
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;
11       }
12     -->
13  </script>
14
15  <div class="listtop" width="100%">[% title %]</div>
16
17  <form method="post" action="dn.pl" name="Form">
18   <table>
19    <tr height="5"></tr>
20
21    <tr>
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>
32    </tr>
33
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 %]">
36      <td>
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 %]
40      </td>
41
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>
44
45      <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 %]')">
48        L</button>
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) %]">
52      </td>
53
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>
60     </tr>
61     [% IF DUNNING_it.last %][% SET rowcount = DUNNING_it.size + 1 %][% END %]
62    [% END %]
63
64    <tr valign="top" class="listrow[% IF odd %]1[% ELSE %]0[% END %]">
65     <td>
66      <input type="hidden" name="dunning_level_[% rowcount %]" value="[% rowcount %]">
67      <input type="hidden" name="id_[% rowcount %]">
68      [% rowcount %]
69     </td>
70
71     <td><input name="dunning_description_[% rowcount %]"></td>
72     <td><input type="checkbox" name="active_[% rowcount %]" value="1" checked></td>
73
74     <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 %]')">
77       L</button>
78      <input type="hidden" name="email_body_[% rowcount %]">
79      <input type="hidden" name="email_subject_[% rowcount %]">
80      <input type="hidden" name="email_attachment_[% rowcount %]">
81     </td>
82
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>
89    </tr>
90   </table>
91
92   <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
93
94   <hr size="3" noshade>
95
96   <p>
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 &uuml;ber Mahngeb&uuml;hren und Zinsen</label>
101   </p>
102
103   <table>
104    <tr>
105     <th align="right">Konto f&uuml;r Geb&uuml;hren</th>
106     <td>
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>
109       [% END %]
110      </select>
111     </td>
112    </tr>
113
114    <tr>
115     <th align="right">Konto f&uuml;r Zinsen</th>
116     <td>
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>
119       [% END %]
120      </select>
121     </td>
122    </tr>
123
124    <tr>
125     <th align="right">Buchen auf</th>
126     <td>
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>
129       [% END %]
130      </select>
131     </td>
132    </tr>
133   </table>
134
135   <hr size="3" noshade>
136
137   <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
138
139   <input type="hidden" name="login" value="[% HTML.escape(login) %]">
140   <input type="hidden" name="password" value="[% HTML.escape(password) %]">
141
142   <input class="submit" type="submit" name="action" value="Speichern">
143
144  </form>
145 </body>
146
147 </html>