Patch aus Bug 1343: csv in ../users speichern
[kivitendo-erp.git] / templates / webpages / oe / form_header_en.html
1 [%- USE HTML %]
2 [%- USE LxERP %]
3 <body onLoad="[% onload %]">
4
5   <form method="post" name="oe" action="[% script %]">
6
7     <script type="text/javascript" src="js/common.js"></script>
8     <script type="text/javascript" src="js/delivery_customer_selection.js"></script>
9     <script type="text/javascript" src="js/vendor_selection.js"></script>
10     <script type="text/javascript" src="js/calculate_qty.js"></script>
11     <script type="text/javascript" src="js/customer_or_vendor_selection.js"></script>
12     <script type="text/javascript" src="js/follow_up.js"></script>
13
14 [%- FOREACH row = HIDDENS %]
15    <input type="hidden" name="[% HTML.escape(row.name) %]" value="[% HTML.escape(row.value) %]" >
16 [%- END %]
17
18     <input type="hidden" name="convert_from_oe_ids" value="[% HTML.escape(convert_from_oe_ids) %]">
19
20     <input type="hidden" name="follow_up_trans_id_1" value="[% HTML.escape(id) %]">
21     <input type="hidden" name="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
22     <input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
23     <input type="hidden" name="follow_up_rowcount" value="1">
24
25     <div class="listtop">[% title %]</div>
26
27     <table width="100%">
28       <tr height="5"></tr>
29       <tr>
30         <td>
31           <table width="100%">
32             <tr valign="top">
33               <td width="50%">
34                 <table width="100%">
35                   <tr>
36                     <th align="right">[% IF vc == 'customer' %]Customer[% ELSE %]Vendor[% END %]</th>
37                     <td>
38                       [%- INCLUDE 'generic/multibox.html'
39                            name          = vc,
40                            style         = 'width: 250px',
41                            DATA          = vc == 'customer' ? ALL_CUSTOMERS : ALL_VENDORS,
42                            id_sub        = 'vc_keys',
43                            label_key     = 'name',
44                            select        = vc_select,
45                            limit         = vclimit,
46                            allow_textbox = 1,
47                            onChange      = "document.getElementById('update_button').click();" -%]
48                       <input type="button" value="Details (one letter abbreviation)" onclick="show_vc_details('[% HTML.escape(vc) %]')">
49                     </td>
50 [% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
51   { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
52 ]
53 %]
54                   </tr>
55 [%- IF ALL_CONTACTS.size %]
56                   <tr>
57                     <th align="right">Contact Person</th>
58                     <td>
59                       [%- INCLUDE 'generic/multibox.html'
60                            name       = 'cp_id',
61                            style      = 'width: 250px',
62                            DATA       = ALL_CONTACTS,
63                            id_key     = 'cp_id',
64                            label_sub  = 'contact_labels',
65                            show_empty = 1 -%]
66                     </td>
67                   </tr>
68 [%- END %]
69 [%- IF ALL_SHIPTO.size %]
70                   <tr>
71                     <th align="right">Shipping Address</th>
72                     <td>
73                       [%- INCLUDE 'generic/multibox.html'
74                            name       = 'shipto_id',
75                            style      = 'width: 250px',
76                            DATA       = ALL_SHIPTO,
77                            id_key     = 'shipto_id',
78                            label_sub  = 'shipto_labels',
79                            show_empty = 1,
80                            onChange   = "document.getElementById('update_button').click();" -%]
81                     </td>
82                   </tr>
83 [%- END %]
84 [%- IF is_order %]
85                   <tr>
86                     <td align="right">Credit Limit</td>
87                     <td>[% LxERP.format_amount(creditlimit, 0) %]; Remaining <span class="plus[% is_credit_remaining_negativ %]">[% LxERP.format_amount(creditremaining, 0) %]</span></td>
88                   </tr>
89 [%- END %]
90 [%- IF business %]
91                   <tr>
92                     <th align="right">[% business_label %]</th>
93                     <td>[% HTML.escape(business) %]; Trade Discount [% LxERP.format_percent(tradediscount) %] %</td>
94                   </tr>
95 [%- END %]
96 [%- IF max_dunning_level %]
97                   <tr>
98                     <th align="right">Max. Dunning Level:</th>
99                     <td>
100                       <b>[% HTML.escape(max_dunning_level) %]</b>;
101                       Dunning Amount: <b>[% LxERP.format_amount(dunning_amount, 2) %]</b>
102                     </td>
103                   </tr>
104 [%- END %]
105                   <tr>
106                     <th align="right">Steuersatz</th>
107                     <td>
108                       [%- INCLUDE 'generic/multibox.html'
109                            name       = 'taxzone_id',
110                            style      = 'width: 250px',
111                            DATA       = ALL_TAXZONES,
112                            id_key     = 'id',
113                            label_key  = 'description' -%]
114                     </td>
115                   </tr>
116 [%- IF ALL_DEPARTMENTS %]
117                   <tr>
118                     <th align="right" nowrap>Department</th>
119                     <td colspan="3">
120                       [%- INCLUDE 'generic/multibox.html'
121                            name       = 'department_id',
122                            style      = 'width: 250px',
123                            DATA       = ALL_DEPARTMENTS,
124                            id_key     = 'id',
125                            label_sub  = 'department_labels',
126                            show_empty = 1 -%]
127                     </td>
128                   </tr>
129 [%- END %]
130                   <tr>
131 [%- IF currencies %]
132                   <tr>
133                     <th align="right">Currency</th>
134                     <td>[% currencies %]</td>
135                   </tr>
136 [%- END %]
137 [%- IF show_exchangerate %]
138                   <tr>
139                     <th align="right">Exchangerate</th>
140                     <td>
141                      [%- IF forex %]
142                       [% LxERP.format_amount(exchangerate, 2) %]
143                      [%- ELSE %]
144                       <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
145                      [%- END %]
146                     </td>
147                   </tr>
148 [%- END %]
149                   <tr>
150                     <th align="right">Shipping Point</th>
151                     <td colspan="3"><input name="shippingpoint" size="35" value="[% HTML.escape(shippingpoint) %]"></td>
152                   </tr>
153                   <tr>
154                     <th align="right">Ship via</th>
155                     <td colspan="3"><input name="shipvia" size="35" value="[% HTML.escape(shipvia) %]"></td>
156                   </tr>
157                   <tr>
158                     <th align="right">Transaction description</th>
159                     <td colspan="3"><input name="transaction_description" size="35" value="[% HTML.escape(transaction_description) %]"></td>
160                   </tr>
161 [%- IF show_delivery_customer %]
162                   <tr>
163                     <td colspan="4">
164                       <table>
165                         <tr>
166                           <td colspan="2">
167                           <button type="button" onclick="delivery_customer_selection_window('delivery_customer_string','delivery_customer_id')">Choose Customer</button>
168                         </td>
169                           <td colspan="2"><input type="hidden" name="delivery_customer_id" value="[% HTML.escape(delivery_customer_id) %]">
170                           <input size="45" id="delivery_customer_string" name="delivery_customer_string" value="[% HTML.escape(delivery_customer_string) %]"></td>
171                         </tr>
172                         <tr>
173                           <td colspan="2">
174                             <button type="button" onclick="vendor_selection_window('delivery_vendor_string','delivery_vendor_id')">Choose Vendor</button>
175                           </td>
176                           <td colspan="2"><input type="hidden" name="delivery_vendor_id" value="[% HTML.escape(delivery_vendor_id) %]">
177                           <input size="45" id="vendor_string" name="delivery_vendor_string" value="[% HTML.escape(delivery_vendor_string) %]"></td>
178                         </tr>
179                       </table>
180                     </td>
181                   </tr>
182 [%- END %]
183                 </table>
184               </td>
185               <td align="right">
186                 <table>
187               [% openclosed %]
188                   <tr>
189                     <th align="right">Employee</th>
190                     <td>
191                       [%- INCLUDE 'generic/multibox.html'
192                            name       = 'employee_id',
193                            DATA       = ALL_EMPLOYEES,
194                            id_key     = 'id',
195                            label_sub  = 'sales_employee_labels' -%]
196                     </td>
197                   </tr>
198 [%- IF is_sales and ALL_SALESMEN.size %]
199                   <tr>
200                     <th align="right">Salesman</th>
201                     <td>
202                       [%- INCLUDE 'generic/multibox.html'
203                            name       = 'salesman_id',
204                            default    = salesman_id ? salesman_id : employee_id,
205                            DATA       = ALL_SALESMEN,
206                            id_key     = 'id',
207                            label_sub  = 'sales_employee_labels' -%]
208                     </td>
209                   </tr>
210 [%- END %]
211 [%- IF is_order %]
212                   <tr>
213                     <th width="70%" align="right" nowrap>Order Number</th>
214                     <td><input name="ordnumber" size="11" value="[% HTML.escape(ordnumber) %]"></td>
215                   </tr>
216 [%- END %]
217                   <tr>
218                     <th width="70%" align="right" nowrap>[% IF is_req_quo %]RFQ Number[% ELSE %]Quotation Number[% END %]</th>
219                     <td><input name="quonumber" size="11" value="[% HTML.escape(quonumber) %]"></td>
220                   </tr>
221 [%- IF is_order %]
222                   <tr>
223                     <th width="70%" align="right" nowrap>Customer Order Number</th>
224                     <td><input name="cusordnumber" size="11" value="[% HTML.escape(cusordnumber) %]"></td>
225                   </tr>
226 [%- END %]
227                   <tr>
228                     <th align="right" nowrap>
229                      [%- IF is_order %]
230                       Order Date
231                      [%- ELSE %]
232                       Quotation Date
233                      [%- END %]
234                     </th>
235                     <td nowrap>
236                       <input name=transdate id=transdate size=11 title="[% HTML.escape(dateformat) %]" value="[% transdate %]" onBlur="check_right_date_format(this)">
237                       <input type=button name=transdate id="trigger1" value="button">
238                     </td>
239                   </tr>
240                   <tr>
241                     <th align="right" nowrap>
242                      [%- IF is_sales_quo %]
243                       Valid until
244                      [%- ELSE %]
245                       Required by
246                      [%- END %]
247                     </th>
248                     <td nowrap>
249                       <input name=reqdate id=reqdate size=11 title="[% HTML.escape(dateformat) %]" value="[% reqdate %]" onBlur="check_right_date_format(this)">
250                       <input type=button name=reqdate id="trigger2" value="button">
251                     </td>
252                   </tr>
253                   <tr>
254                     <th width="70%" align="right" nowrap>Project Number</th>
255                     <td>
256                       [%- INCLUDE 'generic/multibox.html'
257                            name       = 'globalproject_id',
258                            DATA       = ALL_PROJECTS,
259                            id_key     = 'id',
260                            label_key  = 'projectnumber',
261                            show_empty = 1,
262                            onChange   = "document.getElementById('update_button').click();" -%]
263                     </td>
264                   </tr>
265                 </table>
266               </td>
267             </tr>
268           </table>
269         </td>
270       </tr>
271
272     <script type="text/javascript">
273      <!--
274        Calendar.setup({ inputField : "transdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" });
275        Calendar.setup({ inputField : "reqdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
276      //-->
277     </script>