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