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