- if ( $self->classification_by->{abbreviation}->{$abbr2} ) {
- my $tmp_classification_id = $self->classification_by->{abbreviation}->{$abbr2}->id;
- $classification_id = $tmp_classification_id if $tmp_classification_id;
- }
- if ($part_type eq 'mixed') {
- $part_type = $abbr1 eq $::locale->text('Part (typeabbreviation)') ? 'part'
- : $abbr1 eq $::locale->text('Service (typeabbreviation)') ? 'service'
- : $abbr1 eq $::locale->text('Assembly (typeabbreviation)') ? 'assembly'
- : $abbr1 eq $::locale->text('Assortment (typeabbreviation)') ? 'assortment'
- : undef;
- }
+ if ( $self->classification_by->{abbreviation}->{$abbr2} ) {
+ my $tmp_classification_id = $self->classification_by->{abbreviation}->{$abbr2}->id;
+ $classification_id = $tmp_classification_id if $tmp_classification_id;
+ }
+ if ($part_type eq 'mixed') {
+ $part_type = $abbr1 eq $::locale->text('Part (typeabbreviation)') ? 'part'
+ : $abbr1 eq $::locale->text('Service (typeabbreviation)') ? 'service'
+ : $abbr1 eq $::locale->text('Assembly (typeabbreviation)') ? 'assembly'
+ : $abbr1 eq $::locale->text('Assortment (typeabbreviation)') ? 'assortment'
+ : undef;
+ }