Dienstleistungsstammdaten: diverse Felder nicht mehr anzeigen
[kivitendo-erp.git] / templates / webpages / ic / form_header.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4  <script type="text/javascript" src="js/common.js"></script>
5  <script type="text/javascript" src="js/parts_language_selection.js"></script>
6
7  <p><div class="listtop">[% title %]  [% HTML.escape(partnumber) %]  [% HTML.escape(description) %]</div></p>
8
9 [% PROCESS 'common/flash.html' %]
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 id %]
29    <li><a href="#" rel="sales_price_information">[% 'Price information' | $T8 %]</a></li>
30    [%- END %]
31    [%- IF CUSTOM_VARIABLES.size %]
32    <li><a href="#" rel="custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
33    [%- END %]
34   </ul>
35
36   <div class="tabcontentstyle">
37   <div id="master_data" class="tabcontent">
38
39    <table width="100%">
40     <tr>
41      <td>
42       <table width="100%">
43        <tr valign="top">
44         <td>
45 [%- IF image && conf_parts_show_image %]
46          <a href="[% image | html %]" target="_blank"><img style="[% conf_parts_image_css %]" src="[% image | html %]"/></a>
47 [%- END %]
48
49          <table>
50           <tr>
51            <td colspan="2">
52             <table>
53              <tr>
54               <th align="right">[% 'Part Number' | $T8 %]</th>
55               <td><input id='partnumber' name="partnumber" value="[% HTML.escape(partnumber) %]" size="40"></td>
56              </tr>
57              <tr>
58               <th align="right">[% 'Part Description' | $T8 %]</th>
59               <td>
60                [%- IF description_area %]
61                <textarea name="description" rows="[% HTML.escape(rows) %]" cols="40" wrap="soft">[% HTML.escape(description) %]</textarea>
62                [%- ELSE %]
63                <input name="description" size="40" value="[% HTML.escape(description) %]">
64                [%- END %]
65               </td>
66              </tr>
67              <tr>
68                <th align="right">[% 'EAN-Code' | $T8 %]</th>
69                <td><input name="ean" size="40" value="[% HTML.escape(ean) %]"></td>
70              </tr>
71              <tr>
72               [%- IF all_partsgroup.size %]
73               <th align="right">[% 'Group' | $T8 %]</th>
74               <td>
75                [%- INCLUDE generic/multibox.html
76                      name       = 'partsgroup',
77                      DATA       = all_partsgroup,
78                      show_empty = 1,
79                      id_sub     = 'pg_keys',
80                      label_key  = 'partsgroup',
81                      style      = 'width:250px'
82                -%]
83               </td>
84               <input type="hidden" name="oldpartsgroup" value="[% HTML.escape(oldpartsgroup) %]">
85               [% END %]
86              </tr>
87
88
89              [%- IF BUCHUNGSGRUPPEN.size %]
90              <tr>
91               <th align="right">[% 'Buchungsgruppe' | $T8 %]</th>
92               <td>
93                [%- INCLUDE generic/multibox.html
94                      name       = 'buchungsgruppen_id',
95                      DATA       = BUCHUNGSGRUPPEN,
96                      id_key     = 'id',
97                      label_key  = 'description',
98                      style      = 'width:250px'
99                -%]
100              </tr>
101              [%- END %]
102              <input type="hidden" name="IC_income" value="[% HTML.escape(IC_income_default) %]">
103              [%- UNLESS is_assembly %]
104              <input type="hidden" name="IC_expense" value="[% HTML.escape(IC_expense_default) %]">
105              [%- END %]
106              [%- IF is_part %]
107              <input type="hidden" name="IC" value="[% HTML.escape(IC_default) %]">
108              [%- END %]
109              <tr>
110               <th align="right">[% 'Payment Terms' | $T8 %]</th>
111               <td>
112                [%- INCLUDE generic/multibox.html
113                      name       = 'payment_id',
114                      DATA       = payment_terms,
115                      show_empty = 1,
116                      id_key     = 'id',
117                      label_key  = 'description',
118                      style      = 'width:250px'
119                -%]
120               </td>
121              </tr>
122             </table>
123            </td>
124           </tr>
125
126           <tr>
127            <td>
128             <button type="button" onclick="parts_language_selection_window('language_values')">[% 'Set Language Values' | $T8 %]</button>
129            </td>
130           </tr>
131
132           <tr height="5"></tr>
133
134           <tr>
135            <td>
136             <table>
137              <tr>
138               <th align="left">[% 'Part Notes' | $T8 %]</th>
139               <th align="left">[% 'Formula' | $T8 %]</th>
140              </tr>
141              <tr>
142               <td>
143                <textarea name="notes" rows="[% HTML.escape(notes_rows) %]" cols="45" wrap="soft">[% HTML.escape(notes) %]</textarea>
144               </td>
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              </tr>
151             </table>
152            </td>
153           </tr>
154          </table>
155         </td>
156
157         <td>
158          <table>
159           <tr>
160            <th align="right" nowrap="true">[% 'Updated' | $T8 %]</th>
161            <td>
162             <input name="priceupdate" id="priceupdate" size="11"  title="[% HTML.escape(dateformat) %]" value="[% HTML.escape(priceupdate) %]" readonly>
163            </td>
164           </tr>
165
166           <tr>
167            <th align="right" nowrap="true">[% 'List Price' | $T8 %]</th>
168            <td><input name="listprice" size="11" value="[% LxERP.format_amount(listprice, 2) %]"></td>
169           </tr>
170
171           <tr>
172            <th align="right" nowrap="true">[% 'Sell Price' | $T8 %]</th>
173            <td><input name="sellprice" size="11" value="[% LxERP.format_amount(sellprice, 2) %]"></td>
174           </tr>
175
176           [%- UNLESS is_assembly %]
177           <tr>
178            <th align="right" nowrap="true">[% 'Last Cost' | $T8 %]</th>
179            <td><input name="lastcost" size="11" value="[% LxERP.format_amount(lastcost, 2) %]"></td>
180           </tr>
181           [%- END %]
182
183           [%- IF ALL_PRICE_FACTORS.size %]
184           <tr>
185            <th align="right">[% 'Price Factor' | $T8 %]</th>
186            <td>
187             [%- INCLUDE generic/multibox.html
188                   name       = 'price_factor_id',
189                   DATA       = ALL_PRICE_FACTORS,
190                   show_empty = 1,
191                   id_key     = 'id',
192                   label_key  = 'description',
193                   style      = 'width:100px'
194             -%]
195            </td>
196           </tr>
197           [%- END %]
198
199           <tr>
200            <th align="right" nowrap="true">[% 'Unit' | $T8 %]</th>
201            <td>
202             <input type="hidden" name="unit_changeable" value="[% HTML.escape(unit_changeable) %]">
203             [%- UNLESS unit_changeable %]
204             <input type="hidden" name="unit" value="[% HTML.escape(unit) %]">[% HTML.escape(unit) %]
205             [%- ELSE %]
206             [%- INCLUDE generic/multibox.html
207                   name       = 'unit',
208                   DATA       = ALL_UNITS,
209                   id_key     = 'name',
210                   label_key  = 'name',
211                   style      = 'width:100px'
212             -%]
213             [%- END %]
214            </td>
215           </tr>
216
217         [%- UNLESS is_service %]
218           <tr>
219            <th align="right" nowrap="true">[% 'Weight' | $T8 %]</th>
220            <td>
221             [%- IF is_assembly %]&nbsp;[% LxERP.format_amount(weight) %][%- END %]
222             <input[% IF is_assembly %] type="hidden"[% END %] size="10" name="weight" value="[% LxERP.format_amount(weight) %]">
223             [% HTML.escape(defaults.weightunit) %]
224            </td>
225           </tr>
226           <tr>
227            <th align="right" nowrap>[% 'On Hand' | $T8 %]</th>
228            <th align="left" nowrap class="plus[% IF onhand > 0 %]1[% ELSE %]0[% END %]">&nbsp;[% LxERP.format_amount(onhand) %]</th>
229           </tr>
230           <tr>
231            <th align="right" nowrap="true">[% 'ROP' | $T8 %]</th>
232            <td><input name="rop" size="10" value="[% LxERP.format_amount(rop) %]"></td>
233           </tr>
234           <tr>
235            <th align="right" nowrap="true">[% 'Bin' | $T8 %]</th>
236            <td><input name="bin" size="10" value="[% HTML.escape(bin) %]"></td>
237           </tr>
238         [%- END %]
239           <tr>
240            <th align="right" nowrap="true">[% 'Verrechnungseinheit' | $T8 %]</th>
241            <td><input name="ve" size="10" value="[% HTML.escape(ve) %]"></td>
242           </tr>
243           <tr>
244            <th align="right" nowrap="true">[% 'Business Volume' | $T8 %]</th>
245            <td><input name="gv" size="10" value="[% LxERP.format_amount(gv) %]"></td>
246           </tr>
247           <tr>
248            <th align="right" nowrap><label for="not_discountable">[% 'Not Discountable' | $T8 %]</label></th>
249            <td><input class="checkbox" type="checkbox" name="not_discountable" id="not_discountable" value="1" [% IF not_discountable %]checked[% END %]></td>
250           </tr>
251         [%- IF id %]
252           <tr>
253            <th align="right" nowrap="true"><label for="obsolete">[% 'Obsolete' | $T8 %]</label></th>
254            <td><input name="obsolete" id="obsolete" type="checkbox" class="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
255           </tr>
256         [%- END %]
257         [%- UNLESS is_service %]
258           <tr>
259            <th align="right" nowrap><label for="has_sernumber">[% '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         [%- END %]
263           <tr>
264            <th align="right" nowrap><label for="shop">[% 'Shopartikel' | $T8 %]</label></th>
265            <td><input class="checkbox" type="checkbox" name="shop" id="shop" value="1" [% IF shop %]checked[% END %]></td>
266           </tr>
267          </table>
268         </td>
269        </tr>
270       </table>
271      </td>
272     </tr>
273
274
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
292     <script type="text/javascript">
293      <!-- Calendar.setup({ inputField : "priceupdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" }); //-->
294     </script>