Revision d1809c22
Von Bernd Bleßmann vor fast 3 Jahren hinzugefügt
templates/webpages/order/tabs/_item_input.html | ||
---|---|---|
4 | 4 |
<table id="input_row_table_id"> |
5 | 5 |
<thead> |
6 | 6 |
<tr class="listheading"> |
7 |
<th class="listheading" nowrap >[%- '+' | $T8 %] </th> |
|
7 | 8 |
<th class="listheading" nowrap >[%- 'position' | $T8 %] </th> |
8 | 9 |
<th class="listheading" nowrap >[%- 'Part' | $T8 %] </th> |
9 | 10 |
<th class="listheading" nowrap >[%- 'Description' | $T8 %] </th> |
... | ... | |
15 | 16 |
</thead> |
16 | 17 |
<tbody> |
17 | 18 |
<tr valign="top" class="listrow"> |
19 |
<td class="tooltipster-html" title="[%- 'Create a new part' | $T8 -%]"> |
|
20 |
[% SET type_options = [[ 'part', LxERP.t8('Part') ], [ 'assembly', LxERP.t8('Assembly') ], [ 'service', LxERP.t8('Service') ] ] %] |
|
21 |
[%- IF INSTANCE_CONF.get_feature_experimental_assortment %] |
|
22 |
[%- type_options.push([ 'assortment', LxERP.t8('Assortment')]) %] |
|
23 |
[%- END %] |
|
24 |
[% L.select_tag('add_item.create_part_type', type_options) %] |
|
25 |
[% L.button_tag('kivi.Order.create_part()', LxERP.t8('+')) %] |
|
26 |
</td> |
|
18 | 27 |
<td>[% L.input_tag('add_item.position', '', size = 5, class="add_item_input numeric") %]</td> |
19 | 28 |
<td> |
20 | 29 |
[%- SET PARAM_KEY = SELF.cv == "customer" ? 'with_customer_partnumber' : 'with_makemodel' -%] |
21 | 30 |
[%- SET PARAM_VAL = SELF.search_cvpartnumber -%] |
22 |
[% P.part.picker('add_item.parts_id', '', style='width: 300px', class="add_item_input",
|
|
31 |
[% P.part.picker('add_item.parts_id', SELF.created_part, style='width: 300px', class="add_item_input",
|
|
23 | 32 |
fat_set_item=1, |
24 | 33 |
multiple_pos_input=1, |
25 | 34 |
action={set_multi_items='kivi.Order.add_multi_items'}, |
26 | 35 |
classification_id=SELF.part_picker_classification_ids.as_list.join(','), |
27 | 36 |
$PARAM_KEY=PARAM_VAL) %]</td> |
28 |
<td>[% L.input_tag('add_item.description', '', class="add_item_input") %]</td>
|
|
37 |
<td>[% L.input_tag('add_item.description', SELF.created_part.description, class="add_item_input") %]</td>
|
|
29 | 38 |
<td> |
30 | 39 |
[% L.input_tag('add_item.qty_as_number', '', size = 5, class="add_item_input numeric") %] |
31 |
[% L.hidden_tag('add_item.unit', '', class="add_item_input") %]
|
|
40 |
[% L.hidden_tag('add_item.unit', SELF.created_part.unit, class="add_item_input") %]
|
|
32 | 41 |
</td> |
33 |
<td>[% L.input_tag('add_item.sellprice_as_number', '', size = 10, class="add_item_input numeric") %]</td> |
|
42 |
[%- SET price = LxERP.format_amount(((SELF.type == 'sales_quotation' || SELF.type == 'sales_order') ? SELF.created_part.sellprice : SELF.created_part.lastcost), -2) -%] |
|
43 |
<td>[% L.input_tag('add_item.sellprice_as_number', price, size = 10, class="add_item_input numeric") %]</td> |
|
34 | 44 |
<td>[% L.input_tag('add_item.discount_as_percent', '', size = 5, class="add_item_input numeric") %]</td> |
35 | 45 |
<td>[% L.button_tag('kivi.Order.add_item()', LxERP.t8('Add part')) %]</td> |
36 | 46 |
</tr> |
Auch abrufbar als: Unified diff
Auftrags-Controller: neuen Artikel aus Maske heraus anlegen können