Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision cd12eddf

Von Bernd Bleßmann vor 10 Monaten hinzugefügt

  • ID cd12eddf9a4079b72769af1083133a7a0db6b21e
  • Vorgänger 0f8833aa
  • Nachfolger e284a2eb

Auslaufende Artikel: Warnung beim "Als neu speichern" bei entsprechenden Belegen

Unterschiede anzeigen:

SL/Controller/Order.pm
332 332
  my @obsolete_positions = map { $_->position } grep { $_->part->obsolete } @{ $self->order->items_sorted };
333 333
  flash_later('warning', t8('This record containts obsolete items at position #1', join ', ', @obsolete_positions)) if @obsolete_positions;
334 334

  
335
  # Warn on order locked items if they are not wanted for this record type
336
  if ($self->type_data->no_order_locked_parts) {
337
    my @order_locked_positions = map { $_->position } grep { $_->part->order_locked } @{ $self->order->items_sorted };
338
    flash_later('warning', t8('This record containts not orderable items at position #1', join ', ', @order_locked_positions)) if @order_locked_positions;
339
  }
340

  
335 341
  if (!$::form->{form_validity_token}) {
336 342
    $::form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_ORDER_SAVE())->token;
337 343
  }

Auch abrufbar als: Unified diff