Auftragsmaske: JavaScript-Checks für Speichern aktiver per. Rechnungen nach kivi...
[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               <tr>
32                 <th align="right">[% 'Delivery Terms' | $T8 %]</th>
33                 <td>[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]</td>
34               </tr>
35
36 [%- IF is_sales_ord %]
37             <tr>
38              <th align="right">[%- LxERP.t8('Periodic Invoices') %]</th>
39              <td>
40               [% L.button_tag("edit_periodic_invoices_config(); return false;", LxERP.t8('Configure')) %]
41               ([% HTML.escape(periodic_invoices_status) %])
42               [% L.hidden_tag("periodic_invoices_config", periodic_invoices_config) %]
43               <a href="doc/html/ch03.html#features.periodic-invoices.variables" target="_blank">?</a>
44              </td>
45             </tr>
46 [%- END %]
47
48       [%- IF id && num_follow_ups %]
49       <tr>
50        <td colspan="2">[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', num_follow_ups, num_due_follow_ups) %]</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 align="right">
61                 [% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]
62               </td>
63             </tr>
64             </table>
65           </td>
66       [%- END %]
67 [%- IF is_sales %]
68           <td>
69             <table>
70
71             <tr>
72               <th  align="left">[% 'Ertrag' | $T8 %]</th>
73               <td align="right">
74                 [% LxERP.format_amount(marge_total, 2) %]
75                 <input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
76               </td>
77             </tr>
78             <tr>
79               <th  align="left">[% 'Ertrag prozentual' | $T8 %]</th>
80               <td align="right">
81                 [% LxERP.format_amount(marge_percent, 2) %]
82                 <input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
83               </td>
84               <td>%</td>
85             </tr>
86             </table>
87           </td>
88 [%- END %]
89           <td align="right">
90
91 [%- IF taxaccounts %]
92             <input type="hidden" name="taxincluded_changed_by_user" id="taxincluded_changed_by_user" value="[% taxincluded_changed_by_user ? '1' : '0' %]">
93             <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>
94 [%- END %]
95             <table>
96 [%- IF NOT taxincluded %]
97               <tr>
98                 <th align='right'>[% 'Subtotal' | $T8 %]</th>
99                 <td align='right'>[% LxERP.format_amount(invsubtotal, 2) %]</td>
100               </tr>
101 [%- END %]
102               [% tax %]
103               <tr>
104                 <th align="right">[% 'Total' | $T8 %]</th>
105                 <td align="right">[% LxERP.format_amount(invtotal, 2) %]
106                   <input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
107                   <input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
108                 </td>
109               </tr>
110             </table>
111           </td>
112         </tr>
113       </table>
114     </td>
115   </tr>
116 </table>
117
118 </div>
119 [%- PROCESS 'webdav/_list.html' %]
120 <div id="ui-tabs-1">
121  [%- LxERP.t8("Loading...") %]
122 </div>
123 </div>
124
125 <hr size="3" noshade>
126
127 <p>[% print_options %]</p>
128
129 [% label_edit %]<br>
130 <input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
131 <input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
132 <input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]">
133 <input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]">
134 <input class="submit" type="submit" name="action_save" value="[% 'Save' | $T8 %]"[% IF warn_save_active_periodic_invoice %] data-warn-save-active-periodic-invoice="1"[% END %]>
135 <input class="submit" type="submit" name="action_save_and_close" value="[% 'Save and Close' | $T8 %]"[% IF warn_save_active_periodic_invoice %] data-warn-save-active-periodic-invoice="1"[% END %]>
136
137 [%- IF id %]
138   <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
139   <input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %])" name="history" id="history" value="[% 'history' | $T8 %]">
140
141   <br>[% label_workflow %]<br>
142   <input class="submit" type="submit" name="action_save_as_new" value="[% 'Save as new' | $T8 %]">
143
144   [%- UNLESS (is_sales_ord && !INSTANCE_CONF.get_sales_order_show_delete) || (is_pur_ord && !INSTANCE_CONF.get_purchase_order_show_delete) %]
145     [% L.submit_tag('action_delete', LxERP.t8('Delete'), confirm=LxERP.t8('Are you sure?')) %]
146   [%- END %]
147
148   [%- IF is_sales_quo %]
149     <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
150   [%- END %]
151
152   [%- IF is_req_quo %]
153     <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
154   [%- END %]
155
156   [%- IF is_sales_ord || is_pur_ord %]
157     <input class="submit" type="submit" name="action_delivery_order" value="[% 'Delivery Order' | $T8 %]">
158   [%- END %]
159
160   <input class="submit" type="submit" name="action_invoice" value="[% 'Invoice' | $T8 %]">
161
162   [%- IF is_sales_ord || is_pur_ord %]
163     <br>[% heading %] als neue Vorlage verwenden f&uuml;r<br>
164     [%- IF is_sales_ord %]
165       <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
166      <input class="submit" type="submit" name="action_quotation" value="[% 'Quotation' | $T8 %]">
167     [%- ELSE %]
168     [%- IF is_pur_ord %]
169       <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
170      <input class="submit" type="submit" name="action_request_for_quotation" value="[% 'Request for Quotation' | $T8 %]">
171     [%- END %]
172     [%- END %]
173   [%- END %]
174 [%- END %]
175 <input type="hidden" name="action" value="dispatcher">
176 <input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
177 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
178 <input type="hidden" name="callback" value="[% callback | html %]">
179 [% IF vc == 'customer' %]
180   <input type="hidden" name="customer_discount" value="[% HTML.escape(customer_discount) %]">
181 [% ELSE %]
182   <input type="hidden" name="vendor_discount" value="[% HTML.escape(vendor_discount) %]">
183 [% END %]
184
185 </form>
186 <script type='text/javascript'>
187  $(kivi.SalesPurchase.init_on_submit_checks);
188 </script>