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