X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/0e5e350124f7eec8f67109fe4777bc2dae6c0ea6..825883e4f5b2df7e971fdc27fb290c41fc05f8be:/SL/Presenter/Part.pm diff --git a/SL/Presenter/Part.pm b/SL/Presenter/Part.pm index 8131eff14..145d9128f 100644 --- a/SL/Presenter/Part.pm +++ b/SL/Presenter/Part.pm @@ -61,6 +61,8 @@ sub picker { goto &part_picker } # sub type_abbreviation { my ($part_type) = @_; + + return '' if !$part_type; return $::locale->text('Assembly (typeabbreviation)') if $part_type eq 'assembly'; return $::locale->text('Part (typeabbreviation)') if $part_type eq 'part'; return $::locale->text('Assortment (typeabbreviation)') if $part_type eq 'assortment'; @@ -87,6 +89,9 @@ sub type_abbreviation { # sub classification_abbreviation { my ($id) = @_; + + return '' if !$id; + SL::DB::Manager::PartClassification->cache_all(); my $obj = SL::DB::PartClassification->load_cached($id); $obj && $obj->abbreviation ? t8($obj->abbreviation) : ''; @@ -103,6 +108,9 @@ sub typeclass_abbreviation { # sub separate_abbreviation { my ($id) = @_; + + return '' if !$id; + SL::DB::Manager::PartClassification->cache_all(); my $obj = SL::DB::PartClassification->load_cached($id); $obj && $obj->abbreviation && $obj->report_separate ? t8($obj->abbreviation) : ''; @@ -221,6 +229,11 @@ If C<%params> contains C only parts of this type will be used for autocompletion. You may comma separate multiple types as in C. +If C<%params> contains C only parts of this status will be used +for autocompletion. C can be one of the following strings: +C, C or C. C is the default if C is +not given. + If C<%params> contains C only parts with this unit will be used for autocompletion. You may comma separate multiple units as in C.