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