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