Bilder in der Warenansicht
[kivitendo-erp.git] / templates / webpages / ic / form_header.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 <body onLoad="fokus()">
5
6  <script type="text/javascript" src="js/common.js"></script>
7  <script type="text/javascript" src="js/parts_language_selection.js"></script>
8
9  <p><div class="listtop">[% title %]  [% HTML.escape(partnumber) %]  [% HTML.escape(description) %]</div></p>
10
11  <form method="post" name="ic" action="[% script %]">
12
13   <input name="id" type="hidden" value="[% HTML.escape(id) %]">
14   <input name="item" type="hidden" value="[% HTML.escape(item) %]">
15   <input name="title" type="hidden" value="[% HTML.escape(title) %]">
16   <input name="makemodel" type="hidden" value="[% HTML.escape(makemodel) %]">
17   <input name="alternate" type="hidden" value="[% HTML.escape(alternate) %]">
18   <input name="onhand" type="hidden" value="[% HTML.escape(onhand) %]">
19   <input name="orphaned" type="hidden" value="[% HTML.escape(orphaned) %]">
20   <input name="taxaccounts" type="hidden" value="[% HTML.escape(taxaccounts) %]">
21   <input name="rowcount" type="hidden" value="[% HTML.escape(rowcount) %]">
22   <input name="eur" type="hidden" value="[% HTML.escape(eur) %]">
23   <input name="language_values" type="hidden" value="[% HTML.escape(language_values) %]">
24   <input name="original_partnumber" type="hidden" value="[% HTML.escape(original_partnumber) %]">
25
26   <ul id="maintab" class="shadetabs">
27    <li class="selected"><a href="#" rel="master_data">[% 'Basic Data' | $T8 %]</a></li>
28    [%- IF CUSTOM_VARIABLES.size %]
29    <li><a href="#" rel="custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
30    [%- END %]
31   </ul>
32
33   <div class="tabcontentstyle">
34   <div id="master_data" class="tabcontent">
35
36    <table width="100%">
37     <tr>
38      <td>
39       <table width="100%">
40        <tr valign="top">
41         <td>
42 [%- IF image && conf_parts_show_image %]
43          <a href="[% image | html %]" target="_blank"><img style="[% conf_parts_image_css %]" src="[% image | html %]"/></a>
44 [%- END %]
45
46          <table>
47           <tr>
48            <td colspan="2">
49             <table>
50              <tr>
51               <th align="right">[% 'Part Number' | $T8 %]</th>
52               <td><input name="partnumber" value="[% HTML.escape(partnumber) %]" size="40"></td>
53              </tr>
54              <tr>
55               <th align="right">[% 'Part Description' | $T8 %]</th>
56               <td>
57                [%- IF description_area %]
58                <textarea name="description" rows="[% HTML.escape(rows) %]" cols="40" wrap="soft">[% HTML.escape(description) %]</textarea>
59                [%- ELSE %]
60                <input name="description" size="40" value="[% HTML.escape(description) %]">
61                [%- END %]
62               </td>
63              </tr>
64              <tr>
65                <th align="right">[% 'EAN-Code' | $T8 %]</th>
66                <td><input name="ean" size="40" value="[% HTML.escape(ean) %]"></td>
67              </tr>
68              <tr>
69               [%- IF all_partsgroup.size %]
70               <th align="right">[% 'Group' | $T8 %]</th>
71               <td>
72                [%- INCLUDE generic/multibox.html
73                      name       = 'partsgroup',
74                      DATA       = all_partsgroup,
75                      show_empty = 1,
76                      id_sub     = 'pg_keys',
77                      label_key  = 'partsgroup',
78                      style      = 'width:250px'
79                -%]
80               </td>
81               <input type="hidden" name="oldpartsgroup" value="[% HTML.escape(oldpartsgroup) %]">
82               [% END %]
83              </tr>
84
85
86              [%- IF BUCHUNGSGRUPPEN.size %]
87              <tr>
88               <th align="right">[% 'Buchungsgruppe' | $T8 %]</th>
89               <td>
90                [%- INCLUDE generic/multibox.html
91                      name       = 'buchungsgruppen_id',
92                      DATA       = BUCHUNGSGRUPPEN,
93                      id_key     = 'id',
94                      label_key  = 'description',
95                      style      = 'width:250px'
96                -%]
97              </tr>
98              [%- END %]
99              <input type="hidden" name="IC_income" value="[% HTML.escape(IC_income_default) %]">
100              [%- UNLESS is_assembly %]
101              <input type="hidden" name="IC_expense" value="[% HTML.escape(IC_expense_default) %]">
102              [%- END %]
103              [%- IF is_part %]
104              <input type="hidden" name="IC" value="[% HTML.escape(IC_default) %]">
105              [%- END %]
106              <tr>
107               <th align="right">[% 'Payment Terms' | $T8 %]</th>
108               <td>
109                [%- INCLUDE generic/multibox.html
110                      name       = 'payment_id',
111                      DATA       = payment_terms,
112                      show_empty = 1,
113                      id_key     = 'id',
114                      label_key  = 'description',
115                      style      = 'width:250px'
116                -%]
117               </td>
118              </tr>
119             </table>
120            </td>
121           </tr>
122
123           <tr>
124            <td>
125             <button type="button" onclick="parts_language_selection_window('language_values')">[% 'Set Language Values' | $T8 %]</button>
126            </td>
127           </tr>
128
129           <tr height="5"></tr>
130
131           <tr>
132            <td>
133             <table>
134              <tr>
135               <th align="left">[% 'Part Notes' | $T8 %]</th>
136               [%- UNLESS is_service %]
137               <th align="left">[% 'Formula' | $T8 %]</th>
138               [%- END %]
139              </tr>
140              <tr>
141               <td>
142                <textarea name="notes" rows="[% HTML.escape(notes_rows) %]" cols="45" wrap="soft">[% HTML.escape(notes) %]</textarea>
143               </td>
144               [%- UNLESS is_service %]
145               <td>
146                <ilayer>
147                 <layer onmouseover="this.T_STICKY=true;this.T_STATIC=true;return escape('[% 'The formula needs the following syntax:<br>For regular article:<br>Variablename= Variable Unit;<br>Variablename2= Variable2 Unit2;<br>...<br>###<br>Variable + ( Variable2 / Variable )<br><b>Please be beware of the spaces in the formula</b><br>' | $T8 %]')">
148                  <textarea name="formel" rows="[% HTML.escape(notes_rows) %]" cols="30" wrap="soft">[% HTML.escape(formel) %]</textarea></layer></ilayer>
149                </td>
150               [%- END %]
151              </tr>
152             </table>
153            </td>
154           </tr>
155          </table>
156         </td>
157
158         <td>
159          <table>
160           <tr>
161            <th align="right" nowrap="true">[% 'Updated' | $T8 %]</th>
162            <td>
163             <input name="priceupdate" id="priceupdate" size="11"  title="[% HTML.escape(dateformat) %]" value="[% HTML.escape(priceupdate) %]" readonly>
164            </td>
165           </tr>
166
167           <tr>
168            <th align="right" nowrap="true">[% 'List Price' | $T8 %]</th>
169            <td><input name="listprice" size="11" value="[% LxERP.format_amount(listprice, -2) %]"></td>
170           </tr>
171
172           <tr>
173            <th align="right" nowrap="true">[% 'Sell Price' | $T8 %]</th>
174            <td><input name="sellprice" size="11" value="[% LxERP.format_amount(sellprice, -2) %]"></td>
175           </tr>
176
177           [%- UNLESS is_assembly %]
178           <tr>
179            <th align="right" nowrap="true">[% 'Last Cost' | $T8 %]</th>
180            <td><input name="lastcost" size="11" value="[% LxERP.format_amount(lastcost, -2) %]"></td>
181           </tr>
182           [%- END %]
183
184           [%- IF ALL_PRICE_FACTORS.size %]
185           <tr>
186            <th align="right">[% 'Price Factor' | $T8 %]</th>
187            <td>
188             [%- INCLUDE generic/multibox.html
189                   name       = 'price_factor_id',
190                   DATA       = ALL_PRICE_FACTORS,
191                   show_empty = 1,
192                   id_key     = 'id',
193                   label_key  = 'description',
194                   style      = 'width:100px'
195             -%]
196            </td>
197           </tr>
198           [%- END %]
199
200           <tr>
201            <th align="right" nowrap="true">[% 'Unit' | $T8 %]</th>
202            <td>
203             <input type="hidden" name="unit_changeable" value="[% HTML.escape(unit_changeable) %]">
204             [%- UNLESS unit_changeable %]
205             <input type="hidden" name="unit" value="[% HTML.escape(unit) %]">[% HTML.escape(unit) %]
206             [%- ELSE %]
207             [%- INCLUDE generic/multibox.html
208                   name       = 'unit',
209                   DATA       = ALL_UNITS,
210                   id_key     = 'name',
211                   label_key  = 'name',
212                   style      = 'width:100px'
213             -%]
214             [%- END %]
215            </td>
216           </tr>
217
218         [%- UNLESS is_service %]
219           <tr>
220            <th align="right" nowrap="true">[% 'Weight' | $T8 %]</th>
221            <td>
222             [%- IF is_assembly %]&nbsp;[% LxERP.format_amount(weight) %][%- END %]
223             <input[% IF is_assembly %] type="hidden"[% END %] size="10" name="weight" value="[% LxERP.format_amount(weight) %]">
224             [% HTML.escape(defaults.weightunit) %]
225            </td>
226           </tr>
227         [%- END %]
228           <tr>
229            <th align="right" nowrap>[% 'On Hand' | $T8 %]</th>
230            <th align="left" nowrap class="plus[% IF onhand > 0 %]1[% ELSE %]0[% END %]">&nbsp;[% LxERP.format_amount(onhand) %]</th>
231           </tr>
232           <tr>
233            <th align="right" nowrap="true">[% 'ROP' | $T8 %]</th>
234            <td><input name="rop" size="10" value="[% LxERP.format_amount(rop) %]"></td>
235           </tr>
236           <tr>
237            <th align="right" nowrap="true">[% 'Bin' | $T8 %]</th>
238            <td><input name="bin" size="10" value="[% HTML.escape(bin) %]"></td>
239           </tr>
240           <tr>
241            <th align="right" nowrap="true">[% 'Verrechnungseinheit' | $T8 %]</th>
242            <td><input name="ve" size="10" value="[% HTML.escape(ve) %]"></td>
243           </tr>
244           <tr>
245            <th align="right" nowrap="true">[% 'Business Volume' | $T8 %]</th>
246            <td><input name="gv" size="10" value="[% LxERP.format_amount(gv) %]"></td>
247           </tr>
248           <tr>
249            <th align="right" nowrap><label for="not_discountable">[% 'Not Discountable' | $T8 %]</label></th>
250            <td><input class="checkbox" type="checkbox" name="not_discountable" id="not_discountable" value="1" [% IF not_discountable %]checked[% END %]></td>
251           </tr>
252         [%- IF id %]
253           <tr>
254            <th align="right" nowrap="true"><label for="obsolete">[% 'Obsolete' | $T8 %]</label></th>
255            <td><input name="obsolete" id="obsolete" type="checkbox" class="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
256           </tr>
257         [%- END %]
258           <tr>
259            <th align="right" nowrap><label for="shop">[% 'Has serial number' | $T8 %]</label></th>
260            <td><input class="checkbox" type="checkbox" name="has_sernumber" id="has_sernumber" value="1" [% IF has_sernumber %]checked[% END %]></td>
261           </tr>
262           <tr>
263            <th align="right" nowrap><label for="shop">[% 'Shopartikel' | $T8 %]</label></th>
264            <td><input class="checkbox" type="checkbox" name="shop" id="shop" value="1" [% IF shop %]checked[% END %]></td>
265           </tr>
266          </table>
267         </td>
268        </tr>
269       </table>
270      </td>
271     </tr>
272
273
274     [% UNLESS is_service %]
275     <tr>
276      <td>
277       <table>
278        <tr>
279         <th align="right" nowrap>[% 'Image' | $T8 %]</th>
280         <td><input name="image" size="40" value="[% HTML.escape(image) %]"></td>
281         <th align="right" nowrap>[% 'Microfiche' | $T8 %]</th>
282         <td><input name="microfiche" size="20" value="[% HTML.escape(microfiche) %]"></td>
283        </tr>
284        <tr>
285         <th align="right" nowrap>[% 'Drawing' | $T8 %]</th>
286         <td><input name="drawing" size="40" value="[% HTML.escape(drawing) %]"></td>
287        </tr>
288       </table>
289      </td>
290     </tr>
291     [%- END %]
292
293     <script type="text/javascript">
294      <!-- Calendar.setup({ inputField : "priceupdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" }); //-->
295     </script>