Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 19a4866c

Von Tamino Steinert vor 6 Tagen hinzugefügt

  • ID 19a4866ca819e1b91ba8a7e9f15cc481e5148ea6
  • Vorgänger 75687e03
  • Nachfolger 8ed9bbf1

FIX: S:D:Part: EAN eindeutig machen

Unterschiede anzeigen:

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