Bearbeiten der Konfiguration für wiederkehrende Rechnungen implementiert
[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">[% LxERP.format_amount(marge_total, 2) %]</td>
57             </tr>
58             <tr>
59               <th  align="left">[% 'Ertrag prozentual' | $T8 %]</th>
60               <td align="right">[% LxERP.format_amount(marge_percent, 2) %]</td>
61               <td>%</td>
62             </tr>
63
64             <input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
65             <input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
66             </table>
67           </td>
68 [%- END %]
69           <td align="right">
70 [%- IF taxaccounts %]
71             <input name="taxincluded" class="checkbox" type="checkbox" value="1"[% IF taxincluded %] checked[% END %]><b>[% 'Tax Included' | $T8 %]</b><br><br>
72 [%- END %]
73             <table>
74 [%- IF NOT taxincluded %]
75               <tr>
76                 <th align='right'>[% 'Subtotal' | $T8 %]</th>
77                 <td align='right'>[% LxERP.format_amount(invsubtotal, 2) %]</td>
78               </tr>
79 [%- END %]
80               [% tax %]
81               <tr>
82                 <th align="right">[% 'Total' | $T8 %]</th>
83                 <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
84               </tr>
85             </table>
86           </td>
87         </tr>
88       </table>
89     </td>
90   </tr>
91   <input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
92   <input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
93   <tr>
94     <td><hr size="3" noshade></td>
95   </tr>
96
97 [%- IF webdav %]
98   <tr>
99     <th class="listtop" align="left">Dokumente im Webdav-Repository</th>
100   </tr>
101   <tr>
102    <td>
103     <table width="100%">
104      <tr>
105       <td align="left" width="30%"><b>Dateiname</b></td>
106       <td align="left" width="70%"><b>Webdavlink</b></td>
107      </tr>
108  [%- FOREACH file = WEBDAV %]
109       <tr>
110         <td align="left">[% HTML.escape(file.name) %]</td>
111         <td align="left"><a href="[% file.link %]">[% HTML.escape(file.type) %]</a></td>
112       </tr>
113  [%- END %]
114     </table>
115    </td>
116   </tr>
117   <tr>
118     <td><hr size="3" noshade></td>
119   </tr>
120 [%- END %]
121
122   <tr>
123     <td>
124       [% print_options %]
125     </td>
126   </tr>
127 </table>
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 %]">
135 <input class="submit" type="submit" name="action_save_and_close" value="[% 'Save and Close' | $T8 %]">
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   <input class="submit" type="submit" name="action_delete" value="[% 'Delete' | $T8 %]">
144
145   [%- IF is_sales_quo %]
146     <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
147   [%- END %]
148
149   [%- IF is_req_quo %]
150     <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
151   [%- END %]
152
153   [%- IF is_sales_ord || is_pur_ord  && !delivered%]
154     <input class="submit" type="submit" name="action_delivery_order" value="[% 'Delivery Order' | $T8 %]">
155   [%- END %]
156
157   <input class="submit" type="submit" name="action_invoice" value="[% 'Invoice' | $T8 %]">
158
159   [%- IF is_sales_ord || is_pur_ord %]
160     <br>[% heading %] als neue Vorlage verwenden f&uuml;r<br>
161     [%- IF is_sales_ord %]
162       <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
163      <input class="submit" type="submit" name="action_quotation" value="[% 'Quotation' | $T8 %]">
164     [%- ELSE %]
165     [%- IF is_pur_ord %]
166       <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
167      <input class="submit" type="submit" name="action_request_for_quotation" value="[% 'Request for Quotation' | $T8 %]">
168     [%- END %]
169     [%- END %]
170   [%- END %]
171 [%- END %]
172 <input type="hidden" name="action" value="dispatcher">
173 <input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
174 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
175 <input type="hidden" name="callback" value="[% callback %]">
176 [% IF vc == 'customer' %]
177   <input type="hidden" name="customer_discount" value="[% HTML.escape(customer_discount) %]">
178 [% ELSE %]
179   <input type="hidden" name="vendor_discount" value="[% HTML.escape(vendor_discount) %]">
180 [% END %]
181
182 </form>
183
184 </body>
185 </html>