Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 310df8d8

Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt

  • ID 310df8d80726a11d430a99cd8367b1bc90d2a0d9
  • Vorgänger fd32682e
  • Nachfolger 69d2a6cb

Model::Record: Überprüfe ob Positionen vorhanden sind

Unterschiede anzeigen:

SL/Controller/DeliveryOrder.pm
sub save {
my ($self) = @_;
if (scalar @{$self->order->items} == 0 && !grep { $self->type eq $_ } @{$::instance_conf->get_allowed_documents_with_no_positions() || []}) {
return [t8('The action you\'ve chosen has not been executed because the document does not contain any item yet.')];
}
# link records
if ($::form->{converted_from_oe_id}) {
my @converted_from_oe_ids = split ' ', $::form->{converted_from_oe_id};

Auch abrufbar als: Unified diff