Date-Input-Felder durch 'L.date_tag's ersetzt
[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 is_sales %]
51           <td>
52             <table>
53
54             <tr>
55               <th  align="left">[% 'Ertrag' | $T8 %]</th>
56               <td align="right">
57                 [% LxERP.format_amount(marge_total, 2) %]
58                 <input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
59               </td>
60             </tr>
61             <tr>
62               <th  align="left">[% 'Ertrag prozentual' | $T8 %]</th>
63               <td align="right">
64                 [% LxERP.format_amount(marge_percent, 2) %]
65                 <input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
66               </td>
67               <td>%</td>
68             </tr>
69             </table>
70           </td>
71 [%- END %]
72           <td align="right">
73 [%- IF taxaccounts %]
74             <input name="taxincluded" class="checkbox" type="checkbox" value="1"[% IF taxincluded %] checked[% END %]><b>[% 'Tax Included' | $T8 %]</b><br><br>
75 [%- END %]
76             <table>
77 [%- IF NOT taxincluded %]
78               <tr>
79                 <th align='right'>[% 'Subtotal' | $T8 %]</th>
80                 <td align='right'>[% LxERP.format_amount(invsubtotal, 2) %]</td>
81               </tr>
82 [%- END %]
83               [% tax %]
84               <tr>
85                 <th align="right">[% 'Total' | $T8 %]</th>
86                 <td align="right">[% LxERP.format_amount(invtotal, 2) %]
87                   <input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
88                   <input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
89                 </td>
90               </tr>
91             </table>
92           </td>
93         </tr>
94       </table>
95     </td>
96   </tr>
97   <tr>
98     <td><hr size="3" noshade></td>
99   </tr>
100
101 [%- IF webdav %]
102   <tr>
103     <th class="listtop" align="left">Dokumente im Webdav-Repository</th>
104   </tr>
105   <tr>
106    <td>
107     <table width="100%">
108      <tr>
109       <td align="left" width="30%"><b>Dateiname</b></td>
110       <td align="left" width="70%"><b>Webdavlink</b></td>
111      </tr>
112  [%- FOREACH file = WEBDAV %]
113       <tr>
114         <td align="left">[% HTML.escape(file.name) %]</td>
115         <td align="left"><a href="[% file.link %]">[% HTML.escape(file.type) %]</a></td>
116       </tr>
117  [%- END %]
118     </table>
119    </td>
120   </tr>
121   <tr>
122     <td><hr size="3" noshade></td>
123   </tr>
124 [%- END %]
125
126   <tr>
127     <td>
128       [% print_options %]
129     </td>
130   </tr>
131 </table>
132
133 [% label_edit %]<br>
134 <input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
135 <input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
136 <input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]">
137 <input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]">
138 <input class="submit" type="submit" name="action_save" value="[% 'Save' | $T8 %]">
139 <input class="submit" type="submit" name="action_save_and_close" value="[% 'Save and Close' | $T8 %]">
140
141 [%- IF id %]
142   <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
143   <input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %])" name="history" id="history" value="[% 'history' | $T8 %]">
144
145   <br>[% label_workflow %]<br>
146   <input class="submit" type="submit" name="action_save_as_new" value="[% 'Save as new' | $T8 %]">
147   <input class="submit" type="submit" name="action_delete" value="[% 'Delete' | $T8 %]">
148
149   [%- IF is_sales_quo %]
150     <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
151   [%- END %]
152
153   [%- IF is_req_quo %]
154     <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
155   [%- END %]
156
157   [%- IF is_sales_ord || is_pur_ord  && !delivered%]
158     <input class="submit" type="submit" name="action_delivery_order" value="[% 'Delivery Order' | $T8 %]">
159   [%- END %]
160
161   <input class="submit" type="submit" name="action_invoice" value="[% 'Invoice' | $T8 %]">
162
163   [%- IF is_sales_ord || is_pur_ord %]
164     <br>[% heading %] als neue Vorlage verwenden f&uuml;r<br>
165     [%- IF is_sales_ord %]
166       <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
167      <input class="submit" type="submit" name="action_quotation" value="[% 'Quotation' | $T8 %]">
168     [%- ELSE %]
169     [%- IF is_pur_ord %]
170       <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
171      <input class="submit" type="submit" name="action_request_for_quotation" value="[% 'Request for Quotation' | $T8 %]">
172     [%- END %]
173     [%- END %]
174   [%- END %]
175 [%- END %]
176 <input type="hidden" name="action" value="dispatcher">
177 <input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
178 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
179 <input type="hidden" name="callback" value="[% callback | html %]">
180 [% IF vc == 'customer' %]
181   <input type="hidden" name="customer_discount" value="[% HTML.escape(customer_discount) %]">
182 [% ELSE %]
183   <input type="hidden" name="vendor_discount" value="[% HTML.escape(vendor_discount) %]">
184 [% END %]
185
186 </form>
187
188
189     <script type="text/javascript">
190      <!--
191        $('document').ready(function(){
192          setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
193          setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]');
194        });
195      //-->
196     </script>
197 </body>
198 </html>