c9281ac66d4f8a406f44571098565749eeeba1aa
[kivitendo-erp.git] / templates / webpages / oe / 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               </tr>
15               <tr valign="top">
16                 <td>[% notes %]</td>
17                 <td>[% intnotes %]</td>
18               </tr>
19               <tr>
20                 <th align="right">[% 'Payment Terms' | $T8 %]</th>
21                 <td>
22                       [%- INCLUDE 'generic/multibox.html'
23                            name       = 'payment_id',
24                            style      = 'width: 250px',
25                            DATA       = ALL_PAYMENTS,
26                            id_key     = 'id',
27                            label_key  = 'description',
28                            show_empty = 1 -%]
29                 </td>
30             </tr>
31
32 [%- IF is_sales_ord %]
33             <tr>
34              <th align="right">[%- LxERP.t8('Periodic Invoices') %]</th>
35              <td>
36               [% L.button_tag("edit_periodic_invoices_config(); return false;", LxERP.t8('Configure')) %]
37               ([% HTML.escape(periodic_invoices_status) %])
38               [% L.hidden_tag("periodic_invoices_config", periodic_invoices_config) %]
39              </td>
40             </tr>
41 [%- END %]
42
43       [%- IF id && num_follow_ups %]
44       <tr>
45        <td colspan="2">[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', num_follow_ups, num_due_follow_ups) %]</td>
46       </tr>
47       [%- END %]
48       </table>
49           </td>
50       [%- IF show_weight %]
51           <td>
52             <table>
53             <tr>
54               <th  align="left">[% 'Total weight' | $T8 %]</th>
55               <td align="right">
56                 [% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]
57               </td>
58             </tr>
59             </table>
60           </td>
61       [%- END %]
62 [%- IF is_sales %]
63           <td>
64             <table>
65
66             <tr>
67               <th  align="left">[% 'Ertrag' | $T8 %]</th>
68               <td align="right">
69                 [% LxERP.format_amount(marge_total, 2) %]
70                 <input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
71               </td>
72             </tr>
73             <tr>
74               <th  align="left">[% 'Ertrag prozentual' | $T8 %]</th>
75               <td align="right">
76                 [% LxERP.format_amount(marge_percent, 2) %]
77                 <input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
78               </td>
79               <td>%</td>
80             </tr>
81             </table>
82           </td>
83 [%- END %]
84           <td align="right">
85
86 [%- IF taxaccounts %]
87             <input type="hidden" name="taxincluded_changed_by_user" id="taxincluded_changed_by_user" value="[% taxincluded_changed_by_user ? '1' : '0' %]">
88             <input name="taxincluded" class="checkbox" onclick="document.getElementById('taxincluded_changed_by_user').value = '1';" type="checkbox" value="1"[% IF taxincluded %] checked[% END %]><b>[% 'Tax Included' | $T8 %]</b><br><br>
89 [%- END %]
90             <table>
91 [%- IF NOT taxincluded %]
92               <tr>
93                 <th align='right'>[% 'Subtotal' | $T8 %]</th>
94                 <td align='right'>[% LxERP.format_amount(invsubtotal, 2) %]</td>
95               </tr>
96 [%- END %]
97               [% tax %]
98               <tr>
99                 <th align="right">[% 'Total' | $T8 %]</th>
100                 <td align="right">[% LxERP.format_amount(invtotal, 2) %]
101                   <input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
102                   <input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
103                 </td>
104               </tr>
105             </table>
106           </td>
107         </tr>
108       </table>
109     </td>
110   </tr>
111 </table>
112
113 </div>
114 [%- PROCESS 'webdav/_list.html' %]
115 <div id="ui-tabs-1">
116  [%- LxERP.t8("Loading...") %]
117 </div>
118 </div>
119
120 <hr size="3" noshade>
121
122 <p>[% print_options %]</p>
123
124 [% label_edit %]<br>
125 <input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
126 <input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
127 <input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]">
128 <input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]">
129 <input class="submit" type="submit" name="action_save" value="[% 'Save' | $T8 %]">
130 <input class="submit" type="submit" name="action_save_and_close" value="[% 'Save and Close' | $T8 %]">
131
132 [%- IF id %]
133   <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
134   <input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %])" name="history" id="history" value="[% 'history' | $T8 %]">
135
136   <br>[% label_workflow %]<br>
137   <input class="submit" type="submit" name="action_save_as_new" value="[% 'Save as new' | $T8 %]">
138
139   [%- UNLESS (is_sales_ord && !INSTANCE_CONF.get_sales_order_show_delete) || (is_pur_ord && !INSTANCE_CONF.get_purchase_order_show_delete) %]
140     [% L.submit_tag('action_delete', LxERP.t8('Delete'), confirm=LxERP.t8('Are you sure?')) %]
141   [%- END %]
142
143   [%- IF is_sales_quo %]
144     <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
145   [%- END %]
146
147   [%- IF is_req_quo %]
148     <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
149   [%- END %]
150
151   [%- IF is_sales_ord || is_pur_ord %]
152     <input class="submit" type="submit" name="action_delivery_order" value="[% 'Delivery Order' | $T8 %]">
153   [%- END %]
154
155   <input class="submit" type="submit" name="action_invoice" value="[% 'Invoice' | $T8 %]">
156
157   [%- IF is_sales_ord || is_pur_ord %]
158     <br>[% heading %] als neue Vorlage verwenden f&uuml;r<br>
159     [%- IF is_sales_ord %]
160       <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
161      <input class="submit" type="submit" name="action_quotation" value="[% 'Quotation' | $T8 %]">
162     [%- ELSE %]
163     [%- IF is_pur_ord %]
164       <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
165      <input class="submit" type="submit" name="action_request_for_quotation" value="[% 'Request for Quotation' | $T8 %]">
166     [%- END %]
167     [%- END %]
168   [%- END %]
169 [%- END %]
170 <input type="hidden" name="action" value="dispatcher">
171 <input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
172 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
173 <input type="hidden" name="callback" value="[% callback | html %]">
174 [% IF vc == 'customer' %]
175   <input type="hidden" name="customer_discount" value="[% HTML.escape(customer_discount) %]">
176 [% ELSE %]
177   <input type="hidden" name="vendor_discount" value="[% HTML.escape(vendor_discount) %]">
178 [% END %]
179
180 </form>