Revision 4db13ebb
Von Bernd Bleßmann vor mehr als 5 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
1564 | 1564 |
$self->{order_probabilities} = [ map { { title => ($_ * 10) . '%', id => $_ * 10 } } (0..10) ]; |
1565 | 1565 |
$self->{positions_scrollbar_height} = SL::Helper::UserPreferences::PositionsScrollbar->new()->get_height(); |
1566 | 1566 |
|
1567 |
my $user_prefs = SL::Helper::UserPreferences::PartPickerSearch->new(); |
|
1568 |
$self->{search_cvpartnumber} = !!$user_prefs->get_sales_search_customer_partnumber() if $self->cv eq 'customer'; |
|
1569 |
$self->{search_cvpartnumber} = !!$user_prefs->get_purchase_search_makemodel() if $self->cv eq 'vendor'; |
|
1570 |
|
|
1567 | 1571 |
my $print_form = Form->new(''); |
1568 | 1572 |
$print_form->{type} = $self->type; |
1569 | 1573 |
$print_form->{printers} = SL::DB::Manager::Printer->get_all_sorted; |
templates/webpages/order/tabs/_item_input.html | ||
---|---|---|
14 | 14 |
</thead> |
15 | 15 |
<tbody> |
16 | 16 |
<tr valign="top" class="listrow"> |
17 |
<td>[% P.part.picker('add_item.parts_id', '', fat_set_item=1, style='width: 300px', class="add_item_input") %]</td> |
|
17 |
<td> |
|
18 |
[%- SET PARAM_KEY = SELF.cv == "customer" ? 'with_customer_partnumber' : 'with_makemodel' -%] |
|
19 |
[%- SET PARAM_VAL = SELF.search_cvpartnumber -%] |
|
20 |
[% P.part.picker('add_item.parts_id', '', fat_set_item=1, style='width: 300px', class="add_item_input", $PARAM_KEY=PARAM_VAL) %]</td> |
|
18 | 21 |
<td>[% L.input_tag('add_item.description', '', class="add_item_input") %]</td> |
19 | 22 |
<td> |
20 | 23 |
[% L.input_tag('add_item.qty_as_number', '', size = 5, class="add_item_input numeric") %] |
templates/webpages/order/tabs/basic_data.html | ||
---|---|---|
187 | 187 |
</tr> |
188 | 188 |
</table> |
189 | 189 |
|
190 |
[%- PROCESS order/tabs/_item_input.html %] |
|
190 |
[%- PROCESS order/tabs/_item_input.html SELF=SELF %]
|
|
191 | 191 |
|
192 | 192 |
[% L.button_tag('kivi.Order.show_multi_items_dialog()', LxERP.t8('Add multiple items')) %] |
193 | 193 |
|
Auch abrufbar als: Unified diff
Auftrags-Controller: PartPicker filtert nach Kunden- und Lieferanten-Art.-Nr., …
… sofern das in den Benutzereinstellungen ausgewählt ist.