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