push @errors, t8('Employee must not be empty.') if !$self->employee_id;
push @errors, t8('Description must not be empty.') if !$self->description;
push @errors, t8('Start time must be earlier than end time.') if $self->is_time_in_wrong_order;
+ push @errors, t8('Assigned order must be a sales order.') if $self->order_id && 'sales_order' eq !$self->order->type;
+ push @errors, t8('Customer of assigned order must match customer.') if $self->order_id && $self->order->customer_id != $self->customer_id;
+ push @errors, t8('Customer of assigned project must match customer.') if $self->project_id && $self->project->customer_id && $self->project->customer_id != $self->customer_id;
+ push @errors, t8('Project of assigned order must match assigned project.')
+ if $self->project_id && $self->order_id && $self->order->globalproject_id && $self->project_id != $self->order->globalproject_id;
my $conflict = $self->is_time_overlapping;
push @errors, t8('Entry overlaps with "#1".', $conflict->displayable_times) if $conflict;
'Assign the following article to all sections' => 'Den folgenden Artikel allen Abschnitten zuweisen',
'Assigned' => 'Zugewiesen',
'Assigned invoices with amount' => 'Zugewiesene Rechnungen mit Betrag',
+ 'Assigned order must be a sales order.' => 'Zugeordneter Auftrag muss ein Verkaufsauftrag sein.',
'Assignment of articles to sections' => 'Zuweisung von Artikeln zu Abschnitten',
'Assistant for general ledger corrections' => 'Assistent für die Korrektur von Hauptbucheinträgen',
'Assortment' => 'Sortiment',
'Customer missing!' => 'Kundenname fehlt!',
'Customer must not be empty.' => 'Kunden darf nicht leer sein.',
'Customer not found' => 'Kunde nicht gefunden',
+ 'Customer of assigned order must match customer.' => 'Kunde des zugeordneten Auftrags muss mit dem gewählten Kunden übereinstimmen.',
+ 'Customer of assigned project must match customer.' => 'Kunde des zugeordneten Projekts muss mit dem gewählten Kunden übereinstimmen.',
'Customer saved' => 'Kunde gespeichert',
'Customer saved!' => 'Kunde gespeichert!',
'Customer specific Price' => 'Kundenpreis',
'Project Type' => 'Projekttyp',
'Project Types' => 'Projekttypen',
'Project link actions' => 'Projektverknüpfungs-Aktionen',
+ 'Project of assigned order must match assigned project.' => 'Projekt des zugeordneten Auftrags muss mit dem gewählten Projekt übereinstimmen.',
'Project picker' => 'Projektauswahl',
'Project statuses' => 'Projektstatus',
'Project type' => 'Projekttyp',
'Assign the following article to all sections' => '',
'Assigned' => '',
'Assigned invoices with amount' => '',
+ 'Assigned order must be a sales order.' => '',
'Assignment of articles to sections' => '',
'Assistant for general ledger corrections' => '',
'Assortment' => '',
'Customer missing!' => '',
'Customer must not be empty.' => '',
'Customer not found' => '',
+ 'Customer of assigned order must match customer.' => '',
+ 'Customer of assigned project must match customer.' => '',
'Customer saved' => '',
'Customer saved!' => '',
'Customer specific Price' => '',
'Project Type' => '',
'Project Types' => '',
'Project link actions' => '',
+ 'Project of assigned order must match assigned project.' => '',
'Project picker' => '',
'Project statuses' => '',
'Project type' => '',