Einkaufsrechnungen: Checkbox für "Lastschrifteinzug"; Vorbelegung aus Stammdaten
[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       <td align="right">
37   [%- IF taxaccounts %]
38        <input name="taxincluded" class="checkbox" type="checkbox" [% IF taxincluded %]checked[% END %]>
39        <b>[% 'Tax Included' | $T8 %]</b>
40        <br>
41        <br>
42   [%- END %]
43        <table>
44
45 [%- UNLESS taxincluded %]
46         <tr>
47          <th align="right">[% 'Subtotal' | $T8 %]</th>
48          <td align="right">[% LxERP.format_amount(invsubtotal, 2) %]</td>
49        </tr>
50 [%- END %]
51
52 [%# tax %]
53 [% FOREACH item = taxaccounts_array %]
54 [% SET description_ref = item _ '_description' %]
55 [% SET rate_ref        = item _ '_rate' %]
56 [% SET total_ref       = item _ '_total' %]
57 [% SET netto_ref       = item _ '_netto' %]
58        <tr>
59         <th align="right">[% 'Including' | $T8 %] [% $description_ref | html %]&nbsp;[% $rate_ref * 100 %]%</th>
60         <td align="right">[% LxERP.format_amount($total_ref, 2) %]</td>
61        </tr>
62   [%- IF taxincluded %]
63        <tr>
64         <th align="right">[% 'Net amount' | $T8 %]</th>
65         <td align="right">[% LxERP.format_amount($netto_ref, 2) %]</td>
66        </tr>
67   [%- END %]
68 [%- END %]
69
70         <tr>
71          <th align="right">[% 'Total' | $T8 %]</th>
72          <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
73         </tr>
74        </table>
75       </td>
76      </tr>
77     </table>
78    </td>
79   </tr>
80
81 [% PROCESS 'webdav/_list.html' %]
82
83 [% PROCESS 'ir/_payments.html' %]
84
85   <tr>
86     <td><hr size="3" noshade></td>
87   </tr>
88   <tr>
89     <td>
90 [% print_options %]
91     </td>
92   </tr>
93  </table>
94
95
96
97   [% IF id %]
98
99     <input class="submit" type="submit" accesskey="u" name="action" id="update_button" value="[% 'Update' | $T8 %]">
100 [% IF  show_storno %]
101     <input class="submit" type="submit" name="action" value="[% 'Storno' | $T8 %]">
102 [% END %]
103     <input class="submit" type="submit" name="action" value="[% 'Post Payment' | $T8 %]">
104     <input class="submit" type="submit" name="action" value="[% 'Use As New' | $T8 %]">
105
106 [% IF show_delete %]
107     <input class="submit" type="submit" name="action" value="[% 'Delete' | $T8 %]">
108 [% END %]
109
110     <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
111
112  [% ELSE # no id %]
113    [% UNLESS locked %]
114       <input class="submit" type="submit" name="action" id="update_button" value="[% 'Update' | $T8 %]">
115       <input class="submit" type="submit" name="action" value="[% 'Post' | $T8 %]">
116       <input class="submit" type="submit" name="action" value="[% 'Save Draft' | $T8 %]">
117    [%- END %]
118  [% END # id %]
119
120   [% IF id %]
121       [%#- button for saving history %]
122       <input type="button" class="submit" onclick="set_history_window([% id | html %]);" name="history" id="history" value="[% 'history' | $T8 %]">
123
124       [% IF INSTANCE_CONF.get_ir_show_mark_as_paid %]
125           <input type="submit" class="submit" name="action" value="[% 'mark as paid' | $T8 %]">
126       [% END %]
127   [% END %]
128
129 <input type="hidden" name="rowcount" value="[% rowcount %]">
130 <input type="hidden" name="callback" value="[% callback %]">
131 <input type="hidden" name="draft_id" value="[% draft_id %]">
132 <input type="hidden" name="draft_description" value="[% draft_description %]">
133 <input type="hidden" name="vendor_discount" value="[% vendor_discount %]">
134
135 </form>