Revision c3b8cc66
Von Tamino Steinert vor etwa 2 Monaten hinzugefügt
SL/DB/Part.pm | ||
---|---|---|
225 | 225 |
unless ( $self->id ) { |
226 | 226 |
push @errors, $::locale->text('The partnumber already exists.') if SL::DB::Manager::Part->get_all_count(where => [ partnumber => $self->partnumber ]); |
227 | 227 |
} |
228 |
push @errors, $::locale->text('The ean already exists.') if $self->ean ne '' && SL::DB::Manager::Part->get_all_count(where => [ ean => $self->ean ]); |
|
228 |
push @errors, $::locale->text('The ean already exists.') if $self->ean ne '' && SL::DB::Manager::Part->get_all_count( |
|
229 |
where => [ |
|
230 |
ean => $self->ean, |
|
231 |
'!id' => $self->id, |
|
232 |
] |
|
233 |
); |
|
229 | 234 |
|
230 | 235 |
if ($self->is_assortment && $self->orphaned && scalar @{$self->assortment_items} == 0) { |
231 | 236 |
# when assortment isn't orphaned form doesn't contain any items |
Auch abrufbar als: Unified diff
FIX: S:D:Part: EAN eindeutig machen