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