X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FPresenter%2FPart.pm;h=1a33a463bb01bb4a8b8da7151ac17d8889855bfb;hb=35d63a9fdee45777535d7ec815bfbc76c5c1bdc9;hp=1b81ade4d50e63aa25d0fcb9af5c45e2a3608d3c;hpb=880a2e9f233d585d9e1a3d8dc17b2795b8513fcf;p=kivitendo-erp.git diff --git a/SL/Presenter/Part.pm b/SL/Presenter/Part.pm index 1b81ade4d..1a33a463b 100644 --- a/SL/Presenter/Part.pm +++ b/SL/Presenter/Part.pm @@ -15,7 +15,7 @@ sub part_picker { my $ret = $self->input_tag($name, (ref $value && $value->can('id') ? $value->id : ''), class => 'part_autocomplete', type => 'hidden', id => $id) . - join('', map { $params{$_} ? $self->input_tag("", delete $params{$_}, id => "${id}_${_}", type => 'hidden') : '' } qw(column type unit)) . + join('', map { $params{$_} ? $self->input_tag("", delete $params{$_}, id => "${id}_${_}", type => 'hidden') : '' } qw(column type unit convertible_unit)) . $self->input_tag("", (ref $value && $value->can('description')) ? $value->description : '', id => "${id}_name", %params); $self->html_tag('span', $ret, class => 'part_picker'); @@ -63,6 +63,9 @@ If C<%params> contains C only parts with this unit will be used for autocompletion. You may comma separate multiple units as in C. +If C<%params> contains C only parts with a unit +that's convertible to unit will be used for autocompletion. + Obsolete parts will by default not displayed for selection. However they are accepted as default values and can persist during updates. As with other selectors though, they are not selectable once overridden.