Revision af1ad08d
Von Tamino Steinert vor 3 Monaten hinzugefügt
- ID af1ad08d412c5780ded9972cd1eaf16c7373efce
- Vorgänger bea8e7d9
SL/DB/Part.pm | ||
---|---|---|
160 | 160 |
push @errors, $::locale->text('The partsgroup is missing.'); |
161 | 161 |
} |
162 | 162 |
|
163 |
unless ( $self->id ) { |
|
164 |
push @errors, $::locale->text('The partnumber already exists.') if SL::DB::Manager::Part->get_all_count(where => [ partnumber => $self->partnumber ]); |
|
165 |
} |
|
163 |
push @errors, $::locale->text('The partnumber already exists.') if SL::DB::Manager::Part->get_all_count(where => [ partnumber => $self->partnumber, '!id' => $self->id ]); |
|
166 | 164 |
|
167 | 165 |
if ($self->is_assortment && $self->orphaned && scalar @{$self->assortment_items} == 0) { |
168 | 166 |
# when assortment isn't orphaned form doesn't contain any items |
Auch abrufbar als: Unified diff
FIX: S:D:Part: Lesbarer Fehler 'Artikelnummer ist bereits verwendet' ...