my $session_id = $job->data_as_hash->{session_id};
$c->test_and_import(test => $test, session_id => $session_id);
-
+ my $result;
if ($c->errors) {
$job->set_data(
errors => $c->errors,
)->save;
+ $result = $::locale->text('Import finished with errors.');
} else {
my $report_id = $c->save_report(session_id => $session_id);
$job->set_data(report_id => $report_id)->save;
$c->track_progress(finished => 1);
+ $result = $::locale->text('Import finished without errors.');
}
+
+ return $result;
}
sub track_progress {
'Import Status' => 'Import Status',
'Import a MT940 file:' => 'Laden Sie eine MT940 Datei hoch:',
'Import file' => 'Import-Datei',
+ 'Import finished with errors.' => 'Der Import wurde mit Fehlern beendet.',
+ 'Import finished without errors.' => 'Der Import wurde ohne Fehler beendet.',
'Import not started yet, please wait...' => 'Der Taskserver ist gerade ausgelastet. Ihr Import wird gleich gestartet, bitte warten...',
'Import preview' => 'Import-Vorschau',
'Import profiles' => 'Import-Profil',
'Import CSV' => '',
'Import Status' => '',
'Import file' => '',
+ 'Import finished with errors.' => '',
+ 'Import finished without errors.' => '',
'Import not started yet, please wait...' => '',
'Import preview' => '',
'Import profiles' => '',