Revision 6f677221
Von Sven Schöling vor mehr als 2 Jahren hinzugefügt
templates/webpages/delivery_order/tabs/_item_input.html | ||
---|---|---|
9 | 9 |
<th class="listheading" nowrap >[%- 'Part' | $T8 %] </th> |
10 | 10 |
<th class="listheading" nowrap >[%- 'Description' | $T8 %] </th> |
11 | 11 |
<th class="listheading" nowrap width="5" >[%- 'Qty' | $T8 %] </th> |
12 |
<th class="listheading" nowrap width="15">[%- 'Price' | $T8 %] </th> |
|
13 |
<th class="listheading" nowrap width="5" >[%- 'Discount' | $T8 %] </th> |
|
14 | 12 |
<th></th> |
15 | 13 |
</tr> |
16 | 14 |
</thead> |
17 | 15 |
<tbody> |
18 | 16 |
<tr valign="top" class="listrow"> |
19 | 17 |
<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') ] ] %]
|
|
18 |
[% SET type_options = [[ 'part', LxERP.t8('Part') ], [ 'assembly', LxERP.t8('Assembly') ]] %] |
|
21 | 19 |
[%- IF INSTANCE_CONF.get_feature_experimental_assortment %] |
22 | 20 |
[%- type_options.push([ 'assortment', LxERP.t8('Assortment')]) %] |
23 | 21 |
[%- END %] |
... | ... | |
26 | 24 |
</td> |
27 | 25 |
<td>[% L.input_tag('add_item.position', '', size = 5, class="add_item_input numeric") %]</td> |
28 | 26 |
<td> |
29 |
[%- SET PARAM_KEY = SELF.cv == "customer" ? 'with_customer_partnumber' : 'with_makemodel' -%]
|
|
27 |
[%- SET PARAM_KEY = SELF.type_data.properties('is_customer') ? 'with_customer_partnumber' : 'with_makemodel' -%]
|
|
30 | 28 |
[%- SET PARAM_VAL = SELF.search_cvpartnumber -%] |
31 | 29 |
[% P.part.picker('add_item.parts_id', SELF.created_part, style='width: 300px', class="add_item_input", |
32 | 30 |
fat_set_item=1, |
... | ... | |
39 | 37 |
[% L.input_tag('add_item.qty_as_number', '', size = 5, class="add_item_input numeric") %] |
40 | 38 |
[% L.hidden_tag('add_item.unit', SELF.created_part.unit, class="add_item_input") %] |
41 | 39 |
</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> |
|
44 |
<td>[% L.input_tag('add_item.discount_as_percent', '', size = 5, class="add_item_input numeric") %]</td> |
|
45 | 40 |
<td>[% L.button_tag('kivi.DeliveryOrder.add_item()', LxERP.t8('Add part')) %]</td> |
46 | 41 |
</tr> |
47 | 42 |
</tbody> |
Auch abrufbar als: Unified diff
DeliveryOrder: Template Anpassungen