- <td><input type="checkbox" name="auto_<TMPL_VAR rowcount>" value="1" checked></td>
- <td><input name="payment_terms_<TMPL_VAR rowcount>" size="3"></td>
- <td><input name="terms_<TMPL_VAR rowcount>" size="3"></td>
- <td><input name="fee_<TMPL_VAR rowcount>" size="5"></td>
- <td><input name="interest_rate_<TMPL_VAR rowcount>" size="4">%</td>
- <td><input name="template_<TMPL_VAR rowcount>"></td>
+<!-- <td><input type="checkbox" name="auto_[% rowcount %]" value="1" checked></td> -->
+ <td><input type="checkbox" name="create_invoices_for_fees_[% rowcount %]" value="1" checked></td>
+ <td><input name="payment_terms_[% rowcount %]" size="3"></td>
+ <td><input name="terms_[% rowcount %]" size="3"></td>
+ <td><input name="fee_[% rowcount %]" size="5"></td>
+ <td><input name="interest_rate_[% rowcount %]" size="4">%</td>
+ <td><input name="template_[% rowcount %]"></td>
+ </tr>
+ </table>
+
+ <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
+
+ <hr size="3" noshade>
+
+ <p>Wenn das automatische Erstellen einer Rechnung über Mahngebühren und Zinsen für ein Mahnlevel aktiviert ist, so werden die folgenden Konten für die Rechnung benutzt.</p>
+
+ <table>
+ <tr>
+ <th align="right">Konto für Gebühren</th>
+ <td>
+ <select name="AR_amount_fee">
+ [% 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>
+ [% END %]
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <th align="right">Konto für Zinsen</th>
+ <td>
+ <select name="AR_amount_interest">
+ [% 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>
+ [% END %]
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <th align="right">Buchen auf</th>
+ <td>
+ <select name="AR">
+ [% 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>
+ [% END %]
+ </select>
+ </td>