Revision 0b1cca5d
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
1641 | 1641 |
sub save { |
1642 | 1642 |
my ($self) = @_; |
1643 | 1643 |
|
1644 |
if (scalar @{$self->order->items} == 0 && !grep { $self->type eq $_ } @{$::instance_conf->get_allowed_documents_with_no_positions() || []}) { |
|
1645 |
return [t8('The action you\'ve chosen has not been executed because the document does not contain any item yet.')]; |
|
1646 |
} |
|
1647 |
|
|
1648 | 1644 |
# link records |
1649 | 1645 |
if ($::form->{converted_from_oe_id}) { |
1650 | 1646 |
my @converted_from_oe_ids = split ' ', $::form->{converted_from_oe_id}; |
Auch abrufbar als: Unified diff
Model::Record: Überprüfe ob Positionen vorhanden sind