Verkaufs-/Einkaufsbelege: Neuer Tab "Verknüpfte Belege", per AJAX geladen
[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 </table>
100
101 </div>
102 [%- PROCESS 'webdav/_list.html' %]
103 <div id="ui-tabs-1">
104  [%- LxERP.t8("Loading...") %]
105 </div>
106 </div>
107
108 <hr size="3" noshade>
109
110 <p>[% PRINT_OPTIONS %]</p>
111
112 [% label_edit %]<br>
113 <input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
114 <input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
115 <input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]">
116 <input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]">
117 <input class="submit" type="submit" name="action_save" value="[% 'Save' | $T8 %]">
118 <input class="submit" type="submit" name="action_save_and_close" value="[% 'Save and Close' | $T8 %]">
119
120 [%- IF id %]
121   <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
122   <input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %])" name="history" id="history" value="[% 'history' | $T8 %]">
123
124   <br>[% label_workflow %]<br>
125   <input class="submit" type="submit" name="action_save_as_new" value="[% 'Save as new' | $T8 %]">
126
127   [%- UNLESS (is_sales_ord && !INSTANCE_CONF.get_sales_order_show_delete) || (is_pur_ord && !INSTANCE_CONF.get_purchase_order_show_delete) %]
128     <input class="submit" type="submit" name="action_delete" value="[% 'Delete' | $T8 %]">
129   [%- END %]
130
131   [%- IF is_sales_quo %]
132     <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
133   [%- END %]
134
135   [%- IF is_req_quo %]
136     <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
137   [%- END %]
138
139   [%- IF is_sales_ord || is_pur_ord  && !delivered%]
140     <input class="submit" type="submit" name="action_delivery_order" value="[% 'Delivery Order' | $T8 %]">
141   [%- END %]
142
143   <input class="submit" type="submit" name="action_invoice" value="[% 'Invoice' | $T8 %]">
144
145   [%- IF is_sales_ord || is_pur_ord %]
146     <br>[% heading %] als neue Vorlage verwenden f&uuml;r<br>
147     [%- IF is_sales_ord %]
148       <input class="submit" type="submit" name="action_purchase_order" value="[% 'Purchase Order' | $T8 %]">
149      <input class="submit" type="submit" name="action_quotation" value="[% 'Quotation' | $T8 %]">
150     [%- ELSE %]
151     [%- IF is_pur_ord %]
152       <input class="submit" type="submit" name="action_sales_order" value="[% 'Sales Order' | $T8 %]">
153      <input class="submit" type="submit" name="action_request_for_quotation" value="[% 'Request for Quotation' | $T8 %]">
154     [%- END %]
155     [%- END %]
156   [%- END %]
157 [%- END %]
158 <input type="hidden" name="action" value="dispatcher">
159 <input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
160 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
161 <input type="hidden" name="callback" value="[% callback | html %]">
162 [% IF vc == 'customer' %]
163   <input type="hidden" name="customer_discount" value="[% HTML.escape(customer_discount) %]">
164 [% ELSE %]
165   <input type="hidden" name="vendor_discount" value="[% HTML.escape(vendor_discount) %]">
166 [% END %]
167
168 </form>