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