Als Flash-Meldung im neuen Beleg.
# Update employee
$new_attrs{employee} = SL::DB::Manager::Employee->current;
+ # Warn on obsolete items
+ my @obsolete_positions = map { $_->position } grep { $_->part->obsolete } @{ $order->items_sorted };
+ flash_later('warning', t8('This record containts obsolete items at position #1', join ', ', @obsolete_positions)) if @obsolete_positions;
+
# Create new record from current one
$self->order(SL::DB::Order->new_from($order, destination_type => $order->type, attributes => \%new_attrs));
'This part was already counted for this bin:' => 'Dieser Artikel wurde für diesen Lagerplatz bereits erfasst:',
'This price has since gone down' => 'Dieser Preis ist mittlerweile niedriger',
'This price has since gone up' => 'Dieser Preis ist mittlerweile höher',
+ 'This record containts obsolete items at position #1' => 'Dieser Beleg enthält ungültige Artikel an Position #1',
'This record has already been closed.' => 'Dieser Beleg wurde bereits geschlossen.',
'This record has already been delivered.' => 'Dieser Beleg wurde bereits geliefert.',
'This record has not been saved yet.' => 'Der Beleg wurde noch nicht gespeichert.',
'This part was already counted for this bin:' => '',
'This price has since gone down' => '',
'This price has since gone up' => '',
+ 'This record containts obsolete items at position #1' => '',
'This record has already been closed.' => '',
'This record has already been delivered.' => '',
'This record has not been saved yet.' => '',