Artikel aus Belegen anlegen - Artikelklassifizierung berücksichtigen
[kivitendo-erp.git] / templates / webpages / part / _basic_data.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 [%- USE L %]
5 [%- USE P %]
6    <table width="100%" id="basic_data_table">
7     <tr>
8      <td>
9       <table width="100%" id="ic1">
10        <tr valign="top">
11         <td>
12          [%- IF SELF.part.image && INSTANCE_CONF.get_parts_show_image %]
13          <a href="[% SELF.part.image | html %]" target="_blank"><img style="[% INSTANCE_CONF.get_parts_image_css %]" src="[% SELF.part.image | html %]"/></a>
14          [%- END %]
15
16          <table id="ic2">
17           <tr>
18            <td colspan="2">
19             <table id="ic3">
20              <tr>
21               <th align="right">[% 'Part Number' | $T8 %]</th>
22               <td>[% L.input_tag("part.partnumber", SELF.part.partnumber, size=40, class="initial_focus") %]</td>
23              </tr>
24              <tr>
25               <th align="right">[% 'Part Classification' | $T8 %]</th>
26               <td>[% P.select_classification('part.classification_id', default => SELF.part.classification_id, type => SELF.parts_classification_filter ) %]</td>
27              </tr>
28              <tr>
29               <th align="right">[% 'Part Description' | $T8 %]</th>
30               <td>
31                [%- IF description_area %]
32                <textarea name="description" rows="[% HTML.escape(rows) %]" cols="40" wrap="soft">[% HTML.escape(description) %]</textarea>
33                [%- ELSE %]
34                [% L.input_tag("part.description", SELF.part.description, size=40) %]</td>
35                [%- END %]
36               </td>
37              </tr>
38              <tr>
39                <th align="right">[% 'EAN-Code' | $T8 %]</th>
40                <td>[% L.input_tag("part.ean", SELF.part.ean, size=40) %]</td>
41              </tr>
42              <tr>
43               [%- IF SELF.all_partsgroups.size %]
44               <th align="right">[% 'Partsgroup' | $T8 %]</th>
45               <td>[%- L.select_tag('part.partsgroup_id', SELF.all_partsgroups, default=SELF.part.partsgroup_id, title_key='partsgroup', value_key='id', with_empty=1 style='width: 200px') %]</td>
46               [% END %]
47              </tr>
48              [%- IF SELF.all_buchungsgruppen.size %]
49              <tr>
50               <th align="right">[% 'Booking group' | $T8 %]</th>
51               <td>[%- L.select_tag('part.buchungsgruppen_id', SELF.all_buchungsgruppen, default=SELF.part.buchungsgruppen_id, title_key='description', value_key='id', with_empty=0 style='width: 200px') %]</td>
52              </tr>
53              [%- END %]
54              [%- IF SELF.all_payment_terms.size %]
55              <tr>
56               <th align="right">[% 'Payment Terms' | $T8 %]</th>
57               <td>
58               [%- L.select_tag('part.payment_id', SELF.all_payment_terms, default=SELF.part.payment_id, title_key='description', value_key='id', with_empty=1 style='width: 200px') %]</td>
59              </tr>
60              [% END %]
61             </table>
62            </td>
63           </tr>
64
65           <tr height="5"></tr>
66
67           <tr>
68            <td>
69             <table id="ic4">
70              <tr>
71               <th align="left">[% 'Part Notes' | $T8 %]</th>
72               <th align="left">[% 'Formula' | $T8 %]</th>
73              </tr>
74              <tr valign="top">
75               <td>
76                [% L.textarea_tag("part.notes", P.restricted_html(SELF.part.notes), class="texteditor", style="width: 600px; height: 200px") %]
77               </td>
78               <td>
79                  <textarea id="part.formel" name="part.formel" rows="[% HTML.escape(notes_rows) %]" cols="30" wrap="soft" class="tooltipster-html" title="[% '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 %]">[% HTML.escape(SELF.part.formel) %]</textarea>
80                </td>
81              </tr>
82             </table>
83            </td>
84           </tr>
85          </table>
86         </td>
87
88         <td>
89          <table id="ic5">
90           <tr>
91            <th align="right" nowrap="true">[% 'Updated' | $T8 %]</th>
92            <td>
93            [% SELF.part.priceupdate.to_kivitendo | html %]
94            </td>
95           </tr>
96
97           <tr>
98            <th align="right" nowrap="true">[% 'List Price' | $T8 %]</th>
99            <td>[% L.input_tag("part.listprice_as_number", SELF.part.listprice_as_number, size=11 class='reformat_number numeric') %]</td>
100           </tr>
101
102           <tr  >
103            <th align="right" nowrap="true">[% 'Sell Price' | $T8 %]</th>
104            <td>[% L.input_tag("part.sellprice_as_number", SELF.part.sellprice_as_number, size=11, class='reformat_number numeric') %] [% IF (SELF.part.is_assortment or SELF.part.is_assembly) %] (<span id="items_sellprice_sum_basic">[% LxERP.format_amount(SELF.part.items_sellprice_sum, 2) %]</span>) [% END %]</td>
105           </tr>
106
107           [%- UNLESS SELF.part.is_assembly %]
108           <tr>
109            <th align="right" nowrap="true">[% 'Last Cost' | $T8 %]</th>
110            <td>[% L.input_tag("part.lastcost_as_number", SELF.part.lastcost_as_number, size=11 class='reformat_number numeric') %]
111            [% IF SELF.part.is_assortment %] (<span id="items_lastcost_sum_basic">[% LxERP.format_amount(SELF.part.items_lastcost_sum, 2) %]</span>) [% END %]</td>
112           </tr>
113           [%- END %]
114
115           [%- IF SELF.all_price_factors.size %]
116           <tr>
117            <th align="right">[% 'Price Factor' | $T8 %]</th>
118            <td>
119             [%- L.select_tag('part.price_factor_id', SELF.all_price_factors, default=SELF.part.price_factor_id, title_key='description', value_key='id', with_empty=1) %]</td>
120            </td>
121           </tr>
122           [%- END %]
123
124           <tr>
125            <th align="right" nowrap="true">[% 'Unit' | $T8 %]</th>
126            <td>
127             [%- IF !SELF.part.id or SELF.part.orphaned # same logic as unit_changable %]
128             [%- L.select_tag('part.unit', SELF.all_units, default=SELF.part.unit, title_key='name', value_key='name') %]</td>
129             [%- ELSE %]
130             [% L.hidden_tag('part.unit', SELF.part.unit) %] [% HTML.escape(SELF.part.unit) %]
131             [%- END %]
132            </td>
133           </tr>
134
135         [%- UNLESS SELF.part.is_service %]
136           <tr>
137            <th align="right" nowrap="true">[% 'Weight' | $T8 %]</th>
138            <td>
139             [%- IF SELF.part.is_assembly %]
140               [% LxERP.format_amount(SELF.part.weight) %]
141             [% ELSE %]
142               [% L.input_tag('part.weight_as_number', SELF.part.weight_as_number, size=10, class='reformat_number numeric') %]
143             [% END %]
144             [% HTML.escape(INSTANCE_CONF.get_weightunit) %]
145            </td>
146           </tr>
147           <tr>
148            <th align="right" nowrap>[% 'On Hand' | $T8 %]</th>
149            <th align="left" nowrap>[% LxERP.format_amount(SELF.part.onhand) %] [% SELF.part.unit | html %]</th>
150           </tr>
151           <tr>
152            <th align="right" nowrap="true">[% 'ROP' | $T8 %]</th>
153            <td>[% L.input_tag("part.rop_as_number", SELF.part.rop_as_number, size=10, class="reformat_number numeric") %]</td>
154           </tr>
155           [% IF SELF.all_warehouses.size %]
156           <tr>
157            <th align="right" nowrap="true">[% 'Default Warehouse' | $T8 %]</th>
158            <td>[% L.select_tag('part.warehouse_id', SELF.all_warehouses, default=SELF.part.warehouse.id, title_key='description', with_empty=>1) %]
159            </td>
160           </tr>
161           [% END %]
162           <tr>
163            <th align="right" nowrap="true">[% 'Default Bin' | $T8 %]</th>
164            <td>
165             <span id='bin'>
166             [% IF SELF.part.warehouse.id %]
167             [% L.select_tag('part.bin_id', SELF.part.warehouse.bins, default=SELF.part.bin.id, title_key='description') %]
168             [%- END %]
169             </span>
170            </td>
171           </tr>
172         [%- END %]
173           <tr>
174            <th align="right" nowrap="true">[% 'Verrechnungseinheit' | $T8 %]</th>
175            <td>[% L.input_tag("part.ve", SELF.part.ve, size=10) %]</td>
176           </tr>
177           <tr>
178            <th align="right" nowrap="true">[% 'Business Volume' | $T8 %]</th>
179            <td>[% L.input_tag("part.gv_as_number", SELF.part.gv_as_number, size=10, class='reformat_number numeric') %]</td>
180           </tr>
181           <tr>
182            <th align="right" nowrap><label for="not_discountable">[% 'Not Discountable' | $T8 %]</label></th>
183            <td>[% L.checkbox_tag('part.not_discountable', checked = SELF.part.not_discountable, for_submit=1) %]</td>
184           </tr>
185         [%- IF SELF.part.id %]
186           <tr>
187            <th align="right" nowrap="true"><label for="obsolete">[% 'Obsolete' | $T8 %]</label></th>
188            <td>[% L.checkbox_tag('part.obsolete', checked = SELF.part.obsolete, for_submit=1) %]</td>
189           </tr>
190         [%- END %]
191         [%- UNLESS SELF.part.is_service %]
192           <tr>
193            <th align="right" nowrap><label for="has_sernumber">[% 'Has serial number' | $T8 %]</label></th>
194            <td>[% L.checkbox_tag('part.has_sernumber', checked = SELF.part.has_sernumber, for_submit=1) %]</td>
195           </tr>
196         [%- END %]
197           <tr>
198            <th align="right" nowrap><label for="shop">[% 'Shop article' | $T8 %]</label></th>
199            <td>[% L.checkbox_tag('part.shop', checked = SELF.part.shop, for_submit=1) %]</td>
200           </tr>
201          </table>
202         </td>
203        </tr>
204       </table>
205      </td>
206     </tr>
207
208
209     <tr>
210      <td>
211       <table id="ic6">
212        <tr>
213         <th align="right" nowrap>[% 'Image' | $T8 %]</th>
214         <td>[% L.input_tag("part.image", SELF.part.image, size=40) %]</td>
215         <th align="right" nowrap>[% 'Microfiche' | $T8 %]</th>
216         <td>[% L.input_tag("part.microfiche", SELF.part.microfiche, size=20) %]</td>
217        </tr>
218        <tr>
219         <th align="right" nowrap>[% 'Drawing' | $T8 %]</th>
220         <td>[% L.input_tag("part.drawing", SELF.part.drawing, size=40) %]</td>
221        </tr>
222       </table>
223      </td>
224     </tr>
225
226 <div id="pricegroups">
227  [% PROCESS 'part/_pricegroup_prices.html' %]
228 </div>
229
230 [%- UNLESS SELF.part.is_assembly %]
231 <div id="makemodel">
232  [% PROCESS 'part/_makemodel.html' %]
233 </div>
234 [% END %]
235
236   <tr>
237     <td><hr size="3" noshade></td>
238   </tr>
239  </table>