Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 0f1afc44

Von Cem Aydin vor fast 2 Jahren hinzugefügt

  • ID 0f1afc44fa26e8ca363c396138cb705630e9f5b6
  • Vorgänger 8d187867
  • Nachfolger 9dfe43d7

design40: order/tabs/_item_input.html aktualisiert

- d1809c2 Auftrags-Controller: neuen Artikel aus Maske heraus anlegen können

Unterschiede anzeigen:

templates/design40_webpages/order/tabs/_item_input.html
18 18
          <span class="label above">[% 'Part' | $T8 %] </span>
19 19
          [%- SET PARAM_KEY = SELF.cv == "customer" ? 'with_customer_partnumber' : 'with_makemodel' -%]
20 20
          [%- SET PARAM_VAL = SELF.search_cvpartnumber -%]
21
          [% P.part.picker('add_item.parts_id', '', class="add_item_input wi-normal",
21
          [% P.part.picker('add_item.parts_id', SELF.created_part, class="add_item_input wi-normal",
22 22
             fat_set_item=1,
23 23
             multiple_pos_input=1,
24 24
             action={set_multi_items='kivi.Order.add_multi_items'},
25
             classification_id=SELF.part_picker_classification_ids.as_list.join(','),
25 26
             $PARAM_KEY=PARAM_VAL) %]
26 27
        </td>
27 28
        <td>
28 29
          <span class="label above">[% 'Description' | $T8 %] </span>
29
          [% L.input_tag('add_item.description', '', class="add_item_input wi-normal") %]
30
          [% L.input_tag('add_item.description', SELF.created_part.description, class="add_item_input wi-normal") %]
30 31
        </td>
31 32
        <td>
32 33
          <span class="label above">[% 'Qty' | $T8 %]</span>
33
          [% L.input_tag('add_item.qty_as_number', '', class="add_item_input numeric wi-verysmall") %]
34
          [% L.hidden_tag('add_item.unit', '', class="add_item_input") %]
34
          [% L.input_tag('add_item.qty_as_number', '', placeholder="1", class="add_item_input numeric wi-verysmall") %]
35
          [% L.hidden_tag('add_item.unit', SELF.created_part.unit, class="add_item_input") %]
35 36
        </td>
37
        [%- SET price = '' %]
38
        [%- IF SELF.created_part %]
39
          [%- SET price = LxERP.format_amount(((SELF.type == 'sales_quotation' || SELF.type == 'sales_order') ? SELF.created_part.sellprice : SELF.created_part.lastcost), -2) -%]
40
        [%- END %]
36 41
        <td>
37 42
          <span class="label above">[% 'Price' | $T8 %]</span>
38
          [% L.input_tag('add_item.sellprice_as_number', '', class="add_item_input numeric wi-verysmall") %]
43
          [% L.input_tag('add_item.sellprice_as_number', price, class="add_item_input numeric wi-verysmall") %]
39 44
        </td>
40 45
        <td>
41 46
          <span class="label above">[% 'Discount' | $T8 %]</span>
......
46 51
    </tbody>
47 52
  </table>
48 53
  <div style="clear:both">[% L.button_tag('kivi.Order.open_multi_items_dialog()', LxERP.t8('Add multiple items'), class='neutral') %]</div>
54
</div><!-- /.entry-panel -->
49 55

  
56
<div class="input-panel control-panel" style="min-width:10%">
57
  <table id="create_part_table_id" class="tbl-plain condensed">
58
    <caption>[% 'Create a new part' | $T8 %]!</caption>
59
    <tbody>
60
      <tr>
61
        <td class="tooltipster-html" title="[%- 'Create a new part' | $T8 -%]">
62
          <span class="label above">[% 'Part Type' | $T8 %] </span>
63
          [% SET type_options = [[ 'part', LxERP.t8('Part') ], [ 'assembly', LxERP.t8('Assembly') ], [ 'service', LxERP.t8('Service') ]] %]
64
          [%- IF INSTANCE_CONF.get_feature_experimental_assortment %]
65
            [%- type_options.push([ 'assortment', LxERP.t8('Assortment')]) %]
66
          [%- END %]
67
          [% L.select_tag('add_item.create_part_type', type_options) %]
68
          [% L.button_tag('kivi.Order.create_part()', LxERP.t8('+')) %]
69
        </td>
70
      </tr>
71
    </tbody>
72
  </table>
50 73
</div><!-- /.entry-panel -->
51 74
</div><!-- /.wrapper -->

Auch abrufbar als: Unified diff