Revision 0f1afc44
Von Cem Aydin vor etwa 2 Jahren hinzugefügt
templates/design40_webpages/order/tabs/_item_input.html | ||
---|---|---|
<span class="label above">[% 'Part' | $T8 %] </span>
|
||
[%- SET PARAM_KEY = SELF.cv == "customer" ? 'with_customer_partnumber' : 'with_makemodel' -%]
|
||
[%- SET PARAM_VAL = SELF.search_cvpartnumber -%]
|
||
[% P.part.picker('add_item.parts_id', '', class="add_item_input wi-normal",
|
||
[% P.part.picker('add_item.parts_id', SELF.created_part, class="add_item_input wi-normal",
|
||
fat_set_item=1,
|
||
multiple_pos_input=1,
|
||
action={set_multi_items='kivi.Order.add_multi_items'},
|
||
classification_id=SELF.part_picker_classification_ids.as_list.join(','),
|
||
$PARAM_KEY=PARAM_VAL) %]
|
||
</td>
|
||
<td>
|
||
<span class="label above">[% 'Description' | $T8 %] </span>
|
||
[% L.input_tag('add_item.description', '', class="add_item_input wi-normal") %]
|
||
[% L.input_tag('add_item.description', SELF.created_part.description, class="add_item_input wi-normal") %]
|
||
</td>
|
||
<td>
|
||
<span class="label above">[% 'Qty' | $T8 %]</span>
|
||
[% L.input_tag('add_item.qty_as_number', '', class="add_item_input numeric wi-verysmall") %]
|
||
[% L.hidden_tag('add_item.unit', '', class="add_item_input") %]
|
||
[% L.input_tag('add_item.qty_as_number', '', placeholder="1", class="add_item_input numeric wi-verysmall") %]
|
||
[% L.hidden_tag('add_item.unit', SELF.created_part.unit, class="add_item_input") %]
|
||
</td>
|
||
[%- SET price = '' %]
|
||
[%- IF SELF.created_part %]
|
||
[%- SET price = LxERP.format_amount(((SELF.type == 'sales_quotation' || SELF.type == 'sales_order') ? SELF.created_part.sellprice : SELF.created_part.lastcost), -2) -%]
|
||
[%- END %]
|
||
<td>
|
||
<span class="label above">[% 'Price' | $T8 %]</span>
|
||
[% L.input_tag('add_item.sellprice_as_number', '', class="add_item_input numeric wi-verysmall") %]
|
||
[% L.input_tag('add_item.sellprice_as_number', price, class="add_item_input numeric wi-verysmall") %]
|
||
</td>
|
||
<td>
|
||
<span class="label above">[% 'Discount' | $T8 %]</span>
|
||
... | ... | |
</tbody>
|
||
</table>
|
||
<div style="clear:both">[% L.button_tag('kivi.Order.open_multi_items_dialog()', LxERP.t8('Add multiple items'), class='neutral') %]</div>
|
||
</div><!-- /.entry-panel -->
|
||
|
||
<div class="input-panel control-panel" style="min-width:10%">
|
||
<table id="create_part_table_id" class="tbl-plain condensed">
|
||
<caption>[% 'Create a new part' | $T8 %]!</caption>
|
||
<tbody>
|
||
<tr>
|
||
<td class="tooltipster-html" title="[%- 'Create a new part' | $T8 -%]">
|
||
<span class="label above">[% 'Part Type' | $T8 %] </span>
|
||
[% SET type_options = [[ 'part', LxERP.t8('Part') ], [ 'assembly', LxERP.t8('Assembly') ], [ 'service', LxERP.t8('Service') ]] %]
|
||
[%- IF INSTANCE_CONF.get_feature_experimental_assortment %]
|
||
[%- type_options.push([ 'assortment', LxERP.t8('Assortment')]) %]
|
||
[%- END %]
|
||
[% L.select_tag('add_item.create_part_type', type_options) %]
|
||
[% L.button_tag('kivi.Order.create_part()', LxERP.t8('+')) %]
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div><!-- /.entry-panel -->
|
||
</div><!-- /.wrapper -->
|
Auch abrufbar als: Unified diff
design40: order/tabs/_item_input.html aktualisiert
- d1809c2 Auftrags-Controller: neuen Artikel aus Maske heraus anlegen können