Revision 5d7a7cb5
Von Bernd Bleßmann vor 11 Monaten hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
2188 | 2188 |
my $errors = []; |
2189 | 2189 |
my $db = $self->order->db; |
2190 | 2190 |
|
2191 |
if (scalar @{$self->order->items} == 0) { |
|
2191 |
if (scalar @{$self->order->items} == 0 && !grep { $self->type eq $_ } @{$::instance_conf->get_allowed_documents_with_no_positions() || []}) {
|
|
2192 | 2192 |
return [t8('The action you\'ve chosen has not been executed because the document does not contain any item yet.')]; |
2193 | 2193 |
} |
2194 | 2194 |
|
Auch abrufbar als: Unified diff
"Beleg ohne Positionen speichern erlauben" in Mandantenkonfig einstellbar