+++ /dev/null
-[%- USE T8 %]
-[% USE HTML %]<body>
- <script type="text/javascript" src="js/common.js"></script>
- <script type="text/javascript" src="js/dunning.js"></script>
-
- <div class="listtop" width="100%">[% title %]</div>
-
- <form method="post" action="dn.pl" name="Form">
- <table>
- <tr height="5"></tr>
-
- <tr>
- <th class="listheading">[% 'Dunning Level' | $T8 %]</th>
- <th class="listheading">[% 'Dunning Description' | $T8 %]</th>
- <th class="listheading">[% 'Active?' | $T8 %]</th>
- <th class="listheading">[% 'eMail Send?' | $T8 %]</th>
-<!-- <th class="listheading">[% 'Auto Send?' | $T8 %]</th> -->
- <th class="listheading">[% 'Create invoice?' | $T8 %]</th>
- <th class="listheading">[% 'Fristsetzung' | $T8 %]</th>
- <th class="listheading">[% 'Duedate +Days' | $T8 %]</th>
- <th class="listheading">[% 'Fee' | $T8 %]</th>
- <th class="listheading">[% 'Interest Rate' | $T8 %]</th>
- <th class="listheading">[% 'Template' | $T8 %]</th>
- </tr>
-
- [% SET odd = '1' %][% USE DUNNING_it = Iterator(DUNNING) %][% FOREACH row = DUNNING_it %]
- <tr valign="top" class="listrow[% IF odd %]1[% SET odd = '0' %][% ELSE %]0[% SET odd = '1' %][% END %]">
- <td>
- <input type="hidden" name="dunning_level_[% DUNNING_it.count %]" value="[% DUNNING_it.count %]">
- <input type="hidden" name="id_[% DUNNING_it.count %]" value="[% HTML.escape(row.id) %]">
- [% DUNNING_it.count %]
- </td>
-
- <td><input name="dunning_description_[% DUNNING_it.count %]" value="[% HTML.escape(row.dunning_description) %]"></td>
- <td><input type="checkbox" name="active_[% DUNNING_it.count %]" value="1" [% IF row.active %]checked[% END %]></td>
-
- <td>
- <input type="checkbox" name="email_[% DUNNING_it.count %]" value="1" [% IF row.email %]checked[% END %]>
- <button type="button" onclick="set_email_window('email_subject_[% DUNNING_it.count %]', 'email_body_[% DUNNING_it.count %]', 'email_attachment_[% DUNNING_it.count %]')">
- [% 'L' | $T8 %]</button>
- <input type="hidden" name="email_body_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_body) %]">
- <input type="hidden" name="email_subject_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_subject) %]">
- <input type="hidden" name="email_attachment_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_attachment) %]">
- </td>
-
-<!-- <td><input type="checkbox" name="auto_[% DUNNING_it.count %]" value="1" [% IF row.auto %]checked[% END %]></td> -->
- <td><input type="checkbox" name="create_invoices_for_fees_[% DUNNING_it.count %]" value="1" [% IF row.create_invoices_for_fees %]checked[% END %]></td>
- <td><input name="payment_terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.payment_terms) %]"></td>
- <td><input name="terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.terms) %]"></td>
- <td><input name="fee_[% DUNNING_it.count %]" size="5" value="[% HTML.escape(row.fee) %]"></td>
- <td><input name="interest_rate_[% DUNNING_it.count %]" size="4" value="[% HTML.escape(row.interest_rate) %]">%</td>
- <td><input name="template_[% DUNNING_it.count %]" value="[% HTML.escape(row.template) %]"></td>
- </tr>
- [% IF DUNNING_it.last %][% SET rowcount = DUNNING_it.size + 1 %][% END %]
- [% END %]
-
- [%- UNLESS rowcount %][% SET rowcount = '1' %][% END -%]
- <tr valign="top" class="listrow[% IF odd %]1[% ELSE %]0[% END %]">
- <td>
- <input type="hidden" name="dunning_level_[% rowcount %]" value="[% rowcount %]">
- <input type="hidden" name="id_[% rowcount %]">
- [% rowcount %]
- </td>
-
- <td><input name="dunning_description_[% rowcount %]"></td>
- <td><input type="checkbox" name="active_[% rowcount %]" value="1" checked></td>
-
- <td>
- <input type="checkbox" name="email_[% rowcount %]" value="1" checked>
- <button type="button" onclick="set_email_window('email_subject_[% rowcount %]', 'email_body_[% rowcount %]', 'email_attachment_[% rowcount %]')">
- [% 'L' | $T8 %]</button>
- <input type="hidden" name="email_body_[% rowcount %]">
- <input type="hidden" name="email_subject_[% rowcount %]">
- <input type="hidden" name="email_attachment_[% 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>[% 'If the automatic creation of invoices for fees and interest is switched on for a dunning level then the following accounts will be used for the invoice.' | $T8 %]</p>
-
- <table>
- <tr>
- <th align="right">[% 'Account for fees' | $T8 %]</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">[% 'Account for interest' | $T8 %]</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">[% 'Record in' | $T8 %]</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>
- </tr>
- </table>
-
- <hr size="3" noshade>
-
- <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
-
- <input class="submit" type="submit" name="action" value="[% 'Save' | $T8 %]">
-
- </form>
-</body>
-
-</html>