Revision a8593e40
Von Bernd Bleßmann vor 11 Monaten hinzugefügt
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
Auslaufende Artikel: Warnung beim "Als neu speichern" bei entsprechenden Belegen