X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FHelper%2FMT940.pm;h=c25fd5962d14c3856d07a720fe6742b4a7f68af8;hb=b9ad2eee38e25e4dfdefe654077bdd3dcb761d39;hp=34b08c16525edf8199dfca8e3c0540e069296601;hpb=ffb7da30ec503c647ae493ba8ffd48cc43fa44e7;p=kivitendo-erp.git diff --git a/SL/Helper/MT940.pm b/SL/Helper/MT940.pm index 34b08c165..c25fd5962 100644 --- a/SL/Helper/MT940.pm +++ b/SL/Helper/MT940.pm @@ -15,9 +15,15 @@ sub convert_mt940_data { $sfile->fh->print($mt940_data); $sfile->fh->close; + # create needed dir structure for aqbanking 5.x and 6.x my $todir = $sfile->get_path . '/imexporters/csv/profiles'; mkpath $todir; + die "Cannot create $todir" unless -d $todir; + File::Copy::copy('users/aqbanking.conf', $todir.'/kivi.conf'); + die "Cannot create local aqbanking conf " unless -f $todir.'/kivi.conf'; + + mkpath $sfile->get_path . '/settings6/aqbanking'; my $aqbin = $::lx_office_conf{applications}->{aqbanking}; die "Can't find aqbanking-cli, please check your configuration file.\n" unless -f $aqbin;