6d3b643392ee67a54eb178b5c11aa06fdd936b8d
[kivitendo-erp.git] / templates / webpages / ir / form_footer.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 [%- USE L %]
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="left">[% 'Payment Options' | $T8 %]</th>
15         </tr>
16         <tr valign="top">
17          <td>
18           <textarea name="notes" rows="[% rows %]" cols="26" wrap="soft">[% notes %]</textarea>
19          </td>
20          <td>
21           <textarea name="intnotes" rows="[% rows %]" cols="35" wrap="soft">[% intnotes %]</textarea>
22          </td>
23          <td>
24           [%- L.checkbox_tag('direct_debit', 'checked', direct_debit, 'label', LxERP.t8('direct debit')) %]
25          </td>
26         </tr>
27 [%- IF id && follow_ups.size %]
28         <tr>
29           <td colspan="2">
30             [%- LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %]
31           <td>
32         </tr>
33 [%- END %]
34        </table>
35       </td>
36 [%- IF show_weight %]
37       <td>
38        <table>
39         <tr>
40          <th  align=left>[% 'Total weight' | $T8 %]</th>
41          <td>
42           [% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %]
43          </td>
44         </tr>
45        </table>
46       </td>
47 [%- END %]
48       <td align="right">
49   [%- IF taxaccounts %]
50        <input name="taxincluded" class="checkbox" type="checkbox" [% IF taxincluded %]checked[% END %]>
51        <b>[% 'Tax Included' | $T8 %]</b>
52        <br>
53        <br>
54   [%- END %]
55        <table>
56
57 [%- UNLESS taxincluded %]
58         <tr>
59          <th align="right">[% 'Subtotal' | $T8 %]</th>
60          <td align="right">[% LxERP.format_amount(invsubtotal, 2) %]</td>
61        </tr>
62 [%- END %]
63
64 [%# tax %]
65 [% FOREACH item = taxaccounts_array %]
66 [% SET description_ref = item _ '_description' %]
67 [% SET rate_ref        = item _ '_rate' %]
68 [% SET total_ref       = item _ '_total' %]
69 [% SET netto_ref       = item _ '_netto' %]
70        <tr>
71         <th align="right">[% 'Including' | $T8 %] [% $description_ref | html %]&nbsp;[% $rate_ref * 100 %]%</th>
72         <td align="right">[% LxERP.format_amount($total_ref, 2) %]</td>
73        </tr>
74   [%- IF taxincluded %]
75        <tr>
76         <th align="right">[% 'Net amount' | $T8 %]</th>
77         <td align="right">[% LxERP.format_amount($netto_ref, 2) %]</td>
78        </tr>
79   [%- END %]
80 [%- END %]
81
82         <tr>
83          <th align="right">[% 'Total' | $T8 %]</th>
84          <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
85         </tr>
86        </table>
87       </td>
88      </tr>
89     </table>
90    </td>
91   </tr>
92
93 [% PROCESS 'ir/_payments.html' %]
94
95  </table>
96 </div>
97 [% PROCESS 'webdav/_list.html' %]
98 <div id="ui-tabs-1">
99  [%- LxERP.t8("Loading...") %]
100 </div>
101 </div>
102
103 <hr size="3" noshade>
104
105 <p>[% print_options %]</p>
106
107   [% IF id %]
108
109     <input class="submit" type="submit" accesskey="u" name="action" id="update_button" value="[% 'Update' | $T8 %]">
110 [% IF  show_storno %]
111     <input class="submit" type="submit" name="action" value="[% 'Storno' | $T8 %]">
112 [% END %]
113     <input class="submit" type="submit" name="action" value="[% 'Post Payment' | $T8 %]">
114     <input class="submit" type="submit" name="action" value="[% 'Use As New' | $T8 %]">
115
116 [% IF show_delete %]
117     <input class="submit" type="submit" name="action" value="[% 'Delete' | $T8 %]">
118 [% END %]
119
120     <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
121
122  [% ELSE # no id %]
123       <input class="submit" type="submit" name="action" id="update_button" value="[% 'Update' | $T8 %]">
124    [% UNLESS locked %]
125       <input class="submit" type="submit" name="action" value="[% 'Post' | $T8 %]">
126    [%- END %]
127       <input class="submit" type="submit" name="action" value="[% 'Save Draft' | $T8 %]">
128  [% END # id %]
129
130   [% IF id %]
131       [%#- button for saving history %]
132       <input type="button" class="submit" onclick="set_history_window([% id | html %]);" name="history" id="history" value="[% 'history' | $T8 %]">
133
134       [% IF INSTANCE_CONF.get_ir_show_mark_as_paid %]
135           <input type="submit" class="submit" name="action" value="[% 'mark as paid' | $T8 %]">
136       [% END %]
137   [% END %]
138
139 <input type="hidden" name="rowcount" value="[% rowcount %]">
140 <input type="hidden" name="callback" value="[% callback %]">
141 <input type="hidden" name="draft_id" value="[% draft_id %]">
142 <input type="hidden" name="draft_description" value="[% draft_description %]">
143 <input type="hidden" name="vendor_discount" value="[% vendor_discount %]">
144
145 </form>