30f77c5960697c43603212fcde715a5cd6802186
[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">[% 'Payment Terms' | $T8 %]</th>
27                <td>[% L.select_tag('payment_id', payment_terms, default = payment_id, title_key = 'description', with_empty = 1, style="width: 250px") %]
28                  <script type='text/javascript'>$('#payment_id').change(function(){ kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate"); })</script>
29                </td>
30              </tr>
31              <tr>
32                <th align="right">[% 'Delivery Terms' | $T8 %] </th>
33                <td>
34                  [% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]
35                </td>
36              </tr>
37              <tr>
38                <th align="right">[% 'direct debit' | $T8 %]</th>
39                <td>
40                  [%- L.checkbox_tag('direct_debit', 'checked', direct_debit) %]
41                </td>
42              </tr>
43            </table>
44          </td>
45         </tr>
46 [%- IF id && follow_ups.size %]
47         <tr>
48           <td colspan="2">
49             [%- LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %]
50           <td>
51         </tr>
52 [%- END %]
53        </table>
54       </td>
55 [%- IF show_weight %]
56       <td>
57        <table>
58         <tr>
59          <th  align=left>[% 'Total weight' | $T8 %]</th>
60          <td>
61           [% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %]
62          </td>
63         </tr>
64        </table>
65       </td>
66 [%- END %]
67       <td align="right">
68   [%- IF taxaccounts %]
69        <input name="taxincluded" class="checkbox" type="checkbox" [% IF taxincluded %]checked[% END %]>
70        <b>[% 'Tax Included' | $T8 %]</b>
71        <br>
72        <br>
73   [%- END %]
74        <table>
75
76 [%- UNLESS taxincluded %]
77         <tr>
78          <th align="right">[% 'Subtotal' | $T8 %]</th>
79          <td align="right">[% LxERP.format_amount(invsubtotal, 2) %]</td>
80        </tr>
81 [%- END %]
82
83 [%# tax %]
84 [% FOREACH item = taxaccounts_array %]
85 [% SET description_ref = item _ '_description' %]
86 [% SET rate_ref        = item _ '_rate' %]
87 [% SET total_ref       = item _ '_total' %]
88 [% SET netto_ref       = item _ '_netto' %]
89        <tr>
90         <th align="right">[% 'Including' | $T8 %] [% $description_ref | html %]&nbsp;[% $rate_ref * 100 %]%</th>
91         <td align="right">[% LxERP.format_amount($total_ref, 2) %]</td>
92        </tr>
93   [%- IF taxincluded %]
94        <tr>
95         <th align="right">[% 'Net amount' | $T8 %]</th>
96         <td align="right">[% LxERP.format_amount($netto_ref, 2) %]</td>
97        </tr>
98   [%- END %]
99 [%- END %]
100
101         <tr>
102          <th align="right">[% 'Total' | $T8 %]</th>
103          <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
104         </tr>
105        </table>
106       </td>
107      </tr>
108     </table>
109    </td>
110   </tr>
111
112 [% PROCESS 'ir/_payments.html' %]
113
114  </table>
115 </div>
116 [% PROCESS 'webdav/_list.html' %]
117 <div id="ui-tabs-1">
118  [%- LxERP.t8("Loading...") %]
119 </div>
120 </div>
121
122 <hr size="3" noshade>
123
124 <p>[% print_options %]</p>
125
126 <input type="hidden" name="rowcount" value="[% rowcount %]">
127 <input type="hidden" name="callback" value="[% callback %]">
128 [% P.hidden_tag('draft_id', draft_id) %]
129 [% P.hidden_tag('draft_description', draft_description) %]
130 <input type="hidden" name="vendor_discount" value="[% vendor_discount %]">
131
132 </form>