Lieferbedingungen analog zu Zahlungsbedingungen eingeführt.
[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              </td>
44             </tr>
45 [%- END %]
46
47       [%- IF id && num_follow_ups %]
48       <tr>
49        <td colspan="2">[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', num_follow_ups, num_due_follow_ups) %]</td>
50       </tr>
51       [%- END %]
52       </table>
53           </td>
54       [%- IF show_weight %]
55           <td>
56             <table>
57             <tr>
58               <th  align="left">[% 'Total weight' | $T8 %]</th>
59               <td align="right">
60                 [% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]
61               </td>
62             </tr>
63             </table>
64           </td>
65       [%- END %]
66 [%- IF is_sales %]
67           <td>
68             <table>
69
70             <tr>
71               <th  align="left">[% 'Ertrag' | $T8 %]</th>
72               <td align="right">
73                 [% LxERP.format_amount(marge_total, 2) %]
74                 <input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
75               </td>
76             </tr>
77             <tr>
78               <th  align="left">[% 'Ertrag prozentual' | $T8 %]</th>
79               <td align="right">
80                 [% LxERP.format_amount(marge_percent, 2) %]
81                 <input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
82               </td>
83               <td>%</td>
84             </tr>
85             </table>
86           </td>
87 [%- END %]
88           <td align="right">
89
90 [%- IF taxaccounts %]
91             <input type="hidden" name="taxincluded_changed_by_user" id="taxincluded_changed_by_user" value="[% taxincluded_changed_by_user ? '1' : '0' %]">
92             <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>
93 [%- END %]
94             <table>
95 [%- IF NOT taxincluded %]
96               <tr>
97                 <th align='right'>[% 'Subtotal' | $T8 %]</th>
98                 <td align='right'>[% LxERP.format_amount(invsubtotal, 2) %]</td>
99               </tr>
100 [%- END %]
101               [% tax %]
102               <tr>
103                 <th align="right">[% 'Total' | $T8 %]</th>
104                 <td align="right">[% LxERP.format_amount(invtotal, 2) %]
105                   <input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
106                   <input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
107                 </td>
108               </tr>
109             </table>
110           </td>
111         </tr>
112       </table>
113     </td>
114   </tr>
115 </table>
116
117 </div>
118 [%- PROCESS 'webdav/_list.html' %]
119 <div id="ui-tabs-1">
120  [%- LxERP.t8("Loading...") %]
121 </div>
122 </div>
123
124 <hr size="3" noshade>
125
126 <p>[% print_options %]</p>
127
128 [% label_edit %]<br>
129 <input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
130 <input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
131 <input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]">
132 <input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]">
133 <input class="submit" type="submit" name="action_save" value="[% 'Save' | $T8 %]">
134 <input class="submit" type="submit" name="action_save_and_close" value="[% 'Save and Close' | $T8 %]">
135
136 [%- IF id %]
137   <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
138   <input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %])" name="history" id="history" value="[% 'history' | $T8 %]">
139
140   <br>[% label_workflow %]<br>
141   <input class="submit" type="submit" name="action_save_as_new" value="[% 'Save as new' | $T8 %]">
142
143   [%- UNLESS (is_sales_ord && !INSTANCE_CONF.get_sales_order_show_delete) || (is_pur_ord && !INSTANCE_CONF.get_purchase_order_show_delete) %]
144     [% L.submit_tag('action_delete', LxERP.t8('Delete'), confirm=LxERP.t8('Are you sure?')) %]
145   [%- END %]
146
147   [%- IF is_sales_quo %]
148     <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
149   [%- END %]
150
151   [%- IF is_req_quo %]
152     <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
153   [%- END %]
154
155   [%- IF is_sales_ord || is_pur_ord %]
156     <input class="submit" type="submit" name="action_delivery_order" value="[% 'Delivery Order' | $T8 %]">
157   [%- END %]
158
159   <input class="submit" type="submit" name="action_invoice" value="[% 'Invoice' | $T8 %]">
160
161   [%- IF is_sales_ord || is_pur_ord %]
162     <br>[% heading %] als neue Vorlage verwenden f&uuml;r<br>
163     [%- IF is_sales_ord %]
164       <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
165      <input class="submit" type="submit" name="action_quotation" value="[% 'Quotation' | $T8 %]">
166     [%- ELSE %]
167     [%- IF is_pur_ord %]
168       <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
169      <input class="submit" type="submit" name="action_request_for_quotation" value="[% 'Request for Quotation' | $T8 %]">
170     [%- END %]
171     [%- END %]
172   [%- END %]
173 [%- END %]
174 <input type="hidden" name="action" value="dispatcher">
175 <input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
176 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
177 <input type="hidden" name="callback" value="[% callback | html %]">
178 [% IF vc == 'customer' %]
179   <input type="hidden" name="customer_discount" value="[% HTML.escape(customer_discount) %]">
180 [% ELSE %]
181   <input type="hidden" name="vendor_discount" value="[% HTML.escape(vendor_discount) %]">
182 [% END %]
183
184 </form>