Mahnungen: Die Konfiguration so umgestellt, dass jetzt nicht mehr global entschieden...
[kivitendo-erp.git] / templates / webpages / dunning / edit_config_master.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  <div class="listtop" width="100%">[% title %]</div>
6
7  <form method="post" action="dn.pl" name="Form">
8   <table>
9    <tr height="5"></tr>
10
11    <tr>
12     <th class="listheading"><translate>Dunning Level</translate></th>
13     <th class="listheading"><translate>Dunning Description</translate></th>
14     <th class="listheading"><translate>Active?</translate></th>
15     <th class="listheading"><translate>eMail Send?</translate></th>
16 <!--     <th class="listheading"><translate>Auto Send?</translate></th>  -->
17     <th class="listheading"><translate>Create invoice?</translate></th>
18     <th class="listheading"><translate>Fristsetzung</translate></th>
19     <th class="listheading"><translate>Duedate +Days</translate></th>
20     <th class="listheading"><translate>Fee</translate></th>
21     <th class="listheading"><translate>Interest Rate</translate></th>
22     <th class="listheading"><translate>Template</translate></th>
23    </tr>
24
25    [% SET odd = '1' %][% USE DUNNING_it = Iterator(DUNNING) %][% FOREACH row = DUNNING_it %]
26     <tr valign="top" class="listrow[% IF odd %]1[% SET odd = '0' %][% ELSE %]0[% SET odd = '1' %][% END %]">
27      <td>
28       <input type="hidden" name="dunning_level_[% DUNNING_it.count %]" value="[% DUNNING_it.count %]">
29       <input type="hidden" name="id_[% DUNNING_it.count %]" value="[% HTML.escape(row.id) %]">
30       [% DUNNING_it.count %]
31      </td>
32
33      <td><input name="dunning_description_[% DUNNING_it.count %]" value="[% HTML.escape(row.dunning_description) %]"></td>
34      <td><input type="checkbox" name="active_[% DUNNING_it.count %]" value="1" [% IF row.active %]checked[% END %]></td>
35
36      <td>
37       <input type="checkbox" name="email_[% DUNNING_it.count %]" value="1" [% IF row.email %]checked[% END %]>
38       <button type="button" onclick="set_email_window('email_subject_[% DUNNING_it.count %]', 'email_body_[% DUNNING_it.count %]', 'email_attachment_[% DUNNING_it.count %]')">
39        <translate>L</translate></button>
40       <input type="hidden" name="email_body_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_body) %]">
41       <input type="hidden" name="email_subject_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_subject) %]">
42       <input type="hidden" name="email_attachment_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_attachment) %]">
43      </td>
44
45 <!--      <td><input type="checkbox" name="auto_[% DUNNING_it.count %]" value="1" [% IF row.auto %]checked[% END %]></td> -->
46      <td><input type="checkbox" name="create_invoices_for_fees_[% DUNNING_it.count %]" value="1" [% IF row.create_invoices_for_fees %]checked[% END %]></td>
47      <td><input name="payment_terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.payment_terms) %]"></td>
48      <td><input name="terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.terms) %]"></td>
49      <td><input name="fee_[% DUNNING_it.count %]" size="5" value="[% HTML.escape(row.fee) %]"></td>
50      <td><input name="interest_rate_[% DUNNING_it.count %]" size="4" value="[% HTML.escape(row.interest_rate) %]">%</td>
51      <td><input name="template_[% DUNNING_it.count %]" value="[% HTML.escape(row.template) %]"></td>
52     </tr>
53     [% IF DUNNING_it.last %][% SET rowcount = DUNNING_it.size + 1 %][% END %]
54    [% END %]
55
56    <tr valign="top" class="listrow[% IF odd %]1[% ELSE %]0[% END %]">
57     <td>
58      <input type="hidden" name="dunning_level_[% rowcount %]" value="[% rowcount %]">
59      <input type="hidden" name="id_[% rowcount %]">
60      [% rowcount %]
61     </td>
62
63     <td><input name="dunning_description_[% rowcount %]"></td>
64     <td><input type="checkbox" name="active_[% rowcount %]" value="1" checked></td>
65
66     <td>
67      <input type="checkbox" name="email_[% rowcount %]" value="1" checked>
68      <button type="button" onclick="set_email_window('email_subject_[% rowcount %]', 'email_body_[% rowcount %]', 'email_attachment_[% rowcount %]')">
69       <translate>L</translate></button>
70      <input type="hidden" name="email_body_[% rowcount %]">
71      <input type="hidden" name="email_subject_[% rowcount %]">
72      <input type="hidden" name="email_attachment_[% rowcount %]">
73     </td>
74
75 <!--     <td><input type="checkbox" name="auto_[% rowcount %]" value="1" checked></td> -->
76     <td><input type="checkbox" name="create_invoices_for_fees_[% rowcount %]" value="1" checked></td>
77     <td><input name="payment_terms_[% rowcount %]" size="3"></td>
78     <td><input name="terms_[% rowcount %]" size="3"></td>
79     <td><input name="fee_[% rowcount %]" size="5"></td>
80     <td><input name="interest_rate_[% rowcount %]" size="4">%</td>
81     <td><input name="template_[% rowcount %]"></td>
82    </tr>
83   </table>
84
85   <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
86
87   <hr size="3" noshade>
88
89   <p><translate>If the automatic creation of invoices for fees and
90     interest is switched on for a dunning level then the following
91     accounts will be used for the invoice.</translate></p>
92
93   <table>
94    <tr>
95     <th align="right"><translate>Account for fees</translate></th>
96     <td>
97      <select name="AR_amount_fee">
98       [% 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>
99       [% END %]
100      </select>
101     </td>
102    </tr>
103
104    <tr>
105     <th align="right"><translate>Account for interest</translate></th>
106     <td>
107      <select name="AR_amount_interest">
108       [% 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>
109       [% END %]
110      </select>
111     </td>
112    </tr>
113
114    <tr>
115     <th align="right"><translate>Record in</translate></th>
116     <td>
117      <select name="AR">
118       [% 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>
119       [% END %]
120      </select>
121     </td>
122    </tr>
123   </table>
124
125   <hr size="3" noshade>
126
127   <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
128
129   <input type="hidden" name="login" value="[% HTML.escape(login) %]">
130   <input type="hidden" name="password" value="[% HTML.escape(password) %]">
131
132   <input class="submit" type="submit" name="action" value="<translate>Save</translate>">
133
134  </form>
135 </body>
136
137 </html>