Revision 042fd2eb
Von Bernd Bleßmann vor 10 Monaten hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
2094 | 2094 |
|
2095 | 2095 |
$self->parse_phone_note if $::form->{phone_note}->{subject} || $::form->{phone_note}->{body}; |
2096 | 2096 |
|
2097 |
# Test for order locked items if they are not wanted for this record type. |
|
2098 |
if ($self->type_data->no_order_locked_parts) { |
|
2099 |
my @order_locked_positions = map { $_->position } grep { $_->part->order_locked } @{ $self->order->items_sorted }; |
|
2100 |
die t8('This record containts not orderable items at position #1', join ', ', @order_locked_positions) if @order_locked_positions; |
|
2101 |
} |
|
2102 |
|
|
2097 | 2103 |
# create first version if none exists |
2098 | 2104 |
$self->order->add_order_version(SL::DB::OrderVersion->new(version => 1)) if !$self->order->order_version; |
2099 | 2105 |
|
Auch abrufbar als: Unified diff
Auslaufende Artikel: Felher melden beim Speichern bei entsprechenden Belegen