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