cdb8c2d4689010d30ef3fd92db06c55e7a3472e1
[kivitendo-erp.git] / templates / webpages / dunning / show_invoices_master.html
1 [% USE HTML %]<body>
2  <script type="text/javascript" src="js/checkbox_utils.js"></script>
3  <script type="text/javascript" src="js/common.js"></script>
4  <script type="text/javascript" src="js/dunning.js"></script>
5
6  <div class="listtop" width="100%">[% title %]</div>
7
8  <p><translate>The columns &quot;Dunning Duedate&quot;, &quot;Total
9    Fees&quot; and &quot;Interest&quot; show data for the previous
10    dunning created for this invoice.</translate></p>
11
12  <form name="Form" method="post" action="dn.pl">
13
14   <table width="100%">
15    <th class="listheading" colspan="2"><translate>Current / Next Level</translate></th>
16
17    <th class="listheading">
18     <input type="checkbox" name="selectall_active" id="selectall_active" onclick="checkbox_check_all('selectall_active', 'active_', 1, [% rowcount %]);">
19     <label for="selectall_active"><translate>Active?</translate></label>
20    </th>
21
22    <th class="listheading">
23     <input type="checkbox" name="selectall_email" id="selectall_email" onclick="checkbox_check_all('selectall_email', 'email_', 1, [% rowcount %]);">
24     <label for="selectall_email"><translate>eMail?</translate></label>
25    </th>
26
27    <th class="listheading"><translate>Customername</translate></th>
28    <th class="listheading"><translate>Invno.</translate></th>
29    <th class="listheading"><translate>Invdate</translate></th>
30    <th class="listheading"><translate>Inv. Duedate</translate></th>
31    <th class="listheading"><translate>Amount</translate></th>
32    <th class="listheading"><translate>Open Amount</translate></th>
33    <th class="listheading"><translate>Dunning Duedate</translate></th>
34    <th class="listheading"><translate>Total Fees</translate></th>
35    <th class="listheading"><translate>Interest</translate></th>
36
37    <!-- Ausgabe der einzelnen Zeilen -->
38
39    [% FOREACH row = DUNNINGS %]
40     <tr class="listrow[% loop.count % 2 %]">
41
42      <td>
43       <input type="hidden" name="inv_id_[% loop.count %]" size="2" value="[% HTML.escape(row.id) %]">
44       <input type="hidden" name="customer_id_[% loop.count %]" size="2" value="[% HTML.escape(row.customer_id) %]">
45       [% IF row.dunning_level %][% HTML.escape(row.dunning_level) %][% ELSE %]&nbsp;[% END %]
46      </td>
47
48      <td>
49       <select name="next_dunning_config_id_[% loop.count %]">
50        [% FOREACH cfg_row = row.DUNNING_CONFIG %]<option value="[% HTML.escape(cfg_row.id) %]" [% IF cfg_row.SELECTED %]selected[% END %]>[% HTML.escape(cfg_row.dunning_description) %]</option>[% END %]
51       </select>
52      </td>
53
54      <td><input type="checkbox" name="active_[% loop.count %]" value="1" [% IF row.active %]checked[% END %]></td>
55      <td><input type="checkbox" name="email_[% loop.count %]" value="1" [% IF row.email %]checked[% END %]></td>
56      <td><input type="hidden" name="customername_[% loop.count %]" size="6" value="[% HTML.escape(row.customername) %]">[% HTML.escape(row.customername) %]</td>
57      <td>
58       <input type="hidden" name="invnumber_[% loop.count %]" size="6" value="[% HTML.escape(row.invnumber) %]">
59       <a href="is.pl?action=edit&type=invoice&id=[% row.id | url %]">[% HTML.escape(row.invnumber) %]</a>
60      </td>
61      <td><input type="hidden" name="invdate_[% loop.count %]" size="6" value="[% HTML.escape(row.transdate) %]">[% HTML.escape(row.transdate) %]</td>
62      <td><input type="hidden" name="inv_duedate_[% loop.count %]" size="6" value="[% HTML.escape(row.duedate) %]">[% HTML.escape(row.duedate) %]</td>
63      <td align="right"><input type="hidden" name="amount_[% loop.count %]" size="6" value="[% HTML.escape(row.amount) %]">[% HTML.escape(row.amount) %]</td>
64      <td align="right"><input type="hidden" name="open_amount_[% loop.count %]" size="6" value="[% HTML.escape(row.open_amount) %]">[% HTML.escape(row.open_amount) %]</td>
65      <td>[% HTML.escape(row.next_duedate) %]</td>
66      <td align="right"><input type="hidden" name="fee_[% loop.count %]" size="6" value="[% HTML.escape(row.fee) %]">[% HTML.escape(row.fee) %]</td>
67      <td align="right"><input type="hidden" name="interest_[% loop.count %]" size="6" value="[% HTML.escape(row.interest) %]">[% HTML.escape(row.interest) %]</td>
68     </tr>
69    [% END %]
70   </table>
71
72   <hr size=3 noshade>
73
74   [% PRINT_OPTIONS %]
75
76   <br>
77
78   <input name="rowcount" type="hidden" value="[% HTML.escape(rowcount) %]">
79   <input name="groupinvoices" type="hidden" value="[% HTML.escape(groupinvoices) %]">
80
81   <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
82   <input name="nextsub" type="hidden" value="save_dunning">
83
84   <input type="hidden" name="action" value="<translate>Continue</translate>">
85
86   <input type="submit" name="dummy" value="<translate>Continue</translate>"
87          [% UNLESS DEBUG_DUNNING %]onclick="this.disabled=true; this.value='<translate>The dunning process started</translate>'; document.Form.submit()"[% END %]>
88
89  </form>
90 </body>
91 </html>