Revision 310df8d8
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
2067 | 2067 |
sub save { |
2068 | 2068 |
my ($self) = @_; |
2069 | 2069 |
|
2070 |
if (scalar @{$self->order->items} == 0 && !grep { $self->type eq $_ } @{$::instance_conf->get_allowed_documents_with_no_positions() || []}) { |
|
2071 |
return [t8('The action you\'ve chosen has not been executed because the document does not contain any item yet.')]; |
|
2072 |
} |
|
2073 |
|
|
2074 | 2070 |
$self->parse_phone_note if $::form->{phone_note}->{subject} || $::form->{phone_note}->{body}; |
2075 | 2071 |
|
2076 | 2072 |
# create first version if none exists |
Auch abrufbar als: Unified diff
Model::Record: Überprüfe ob Positionen vorhanden sind