From 4471e79a8e8c7927adab39487fa671cf2ddf710a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 5 May 2021 15:49:54 +0200 Subject: [PATCH] =?utf8?q?Zeiterfassung:=20Konvertierung:=20Abbrechen,=20w?= =?utf8?q?enn=20keine=20Eintr=C3=A4ge=20zu=20verarbeiten=20sind?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/BackgroundJob/ConvertTimeRecordings.pm | 3 +-- locale/de/all | 1 + locale/en/all | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SL/BackgroundJob/ConvertTimeRecordings.pm b/SL/BackgroundJob/ConvertTimeRecordings.pm index 1b2e53824..1236c3a11 100644 --- a/SL/BackgroundJob/ConvertTimeRecordings.pm +++ b/SL/BackgroundJob/ConvertTimeRecordings.pm @@ -44,8 +44,7 @@ sub run { '!duration' => undef, %customer_where]); - # no time recordings at all ? -> better exit here before iterating a empty hash - # return undef or message unless ref $time_recordings->[0] eq SL::DB::Manager::TimeRecording; + return t8('No time recordings to convert') if scalar @$time_recordings == 0; my @donumbers; diff --git a/locale/de/all b/locale/de/all index a44b4796c..1b9e13285 100755 --- a/locale/de/all +++ b/locale/de/all @@ -2154,6 +2154,7 @@ $self->{texts} = { 'No template has been selected yet.' => 'Es wurde noch keine Vorlage ausgewählt.', 'No text blocks have been created for this position.' => 'Für diese Position wurden noch keine Textblöcke angelegt.', 'No text has been entered yet.' => 'Es wurde noch kein Text eingegeben.', + 'No time recordings to convert' => 'Es sind keine Zeiterfassungseinträge zu konvertieren', 'No title yet' => 'Bisher ohne Titel', 'No transaction on chart bank chosen!' => 'Keine Buchung auf Bankkonto gewählt.', 'No transaction selected!' => 'Keine Transaktion ausgewählt', diff --git a/locale/en/all b/locale/en/all index 1310f3b92..f3ac38914 100644 --- a/locale/en/all +++ b/locale/en/all @@ -2154,6 +2154,7 @@ $self->{texts} = { 'No template has been selected yet.' => '', 'No text blocks have been created for this position.' => '', 'No text has been entered yet.' => '', + 'No time recordings to convert' => '', 'No title yet' => '', 'No transaction on chart bank chosen!' => '', 'No transaction selected!' => '', -- 2.20.1