f9880ad8059e25269cfb74c2d9f7c7dc151c1553
[kivitendo-erp.git] / templates / webpages / ir / form_footer.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 [%- USE L %][%- USE P -%]
5   <tr>
6    <td>
7     <table width="100%">
8      <tr valign="bottom">
9       <td>
10        <table>
11         <tr>
12          <th align="left">[% 'Notes' | $T8 %]</th>
13          <th align="left">[% 'Internal Notes' | $T8 %]</th>
14          <th align="right">[% 'Payment / Delivery Options' | $T8 %]</th>
15         </tr>
16         <tr valign="top">
17          <td>
18           [% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
19          </td>
20          <td>
21           [% L.textarea_tag("intnotes", intnotes, wrap="soft", style="width: 350px; height: 150px") %]
22          </td>
23          <td>
24            <table>
25              <tr>
26                <th align="right">[% 'Delivery Terms' | $T8 %] </th>
27                <td>
28                  [% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]
29                </td>
30              </tr>
31              <tr>
32                <th align="right">[% 'direct debit' | $T8 %]</th>
33                <td>
34                  [%- L.checkbox_tag('direct_debit', 'checked', direct_debit) %]
35                </td>
36              </tr>
37            </table>
38          </td>
39         </tr>
40 [%- IF id && follow_ups.size %]
41         <tr>
42           <td colspan="2">
43             [%- LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %]
44           <td>
45         </tr>
46 [%- END %]
47        </table>
48       </td>
49 [%- IF show_weight %]
50       <td>
51        <table>
52         <tr>
53          <th  align=left>[% 'Total weight' | $T8 %]</th>
54          <td>
55           [% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %]
56          </td>
57         </tr>
58        </table>
59       </td>
60 [%- END %]
61       <td align="right">
62   [%- IF taxaccounts %]
63        <input name="taxincluded" class="checkbox" type="checkbox" [% IF taxincluded %]checked[% END %]>
64        <b>[% 'Tax Included' | $T8 %]</b>
65        <br>
66        <br>
67   [%- END %]
68        <table>
69
70 [%- UNLESS taxincluded %]
71         <tr>
72          <th align="right">[% 'Subtotal' | $T8 %]</th>
73          <td align="right">[% LxERP.format_amount(invsubtotal, 2) %]</td>
74        </tr>
75 [%- END %]
76
77 [%# tax %]
78 [% FOREACH item = taxaccounts_array %]
79 [% SET description_ref = item _ '_description' %]
80 [% SET rate_ref        = item _ '_rate' %]
81 [% SET total_ref       = item _ '_total' %]
82 [% SET netto_ref       = item _ '_netto' %]
83        <tr>
84         <th align="right">[% 'Including' | $T8 %] [% $description_ref | html %]&nbsp;[% $rate_ref * 100 %]%</th>
85         <td align="right">[% LxERP.format_amount($total_ref, 2) %]</td>
86        </tr>
87   [%- IF taxincluded %]
88        <tr>
89         <th align="right">[% 'Net amount' | $T8 %]</th>
90         <td align="right">[% LxERP.format_amount($netto_ref, 2) %]</td>
91        </tr>
92   [%- END %]
93 [%- END %]
94
95         <tr>
96          <th align="right">[% 'Total' | $T8 %]</th>
97          <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
98         </tr>
99        </table>
100       </td>
101      </tr>
102     </table>
103    </td>
104   </tr>
105
106 [% PROCESS 'ir/_payments.html' %]
107
108  </table>
109 </div>
110 [% PROCESS 'webdav/_list.html' %]
111 <div id="ui-tabs-1">
112  [%- LxERP.t8("Loading...") %]
113 </div>
114 </div>
115
116 <hr size="3" noshade>
117
118 <p>[% print_options %]</p>
119
120 <input type="hidden" name="rowcount" value="[% rowcount %]">
121 <input type="hidden" name="callback" value="[% callback %]">
122 [% P.hidden_tag('draft_id', draft_id) %]
123 [% P.hidden_tag('draft_description', draft_description) %]
124 <input type="hidden" name="vendor_discount" value="[% vendor_discount %]">
125
126 </form>