From: Jan Büren Date: Wed, 2 Dec 2015 08:54:04 +0000 (+0100) Subject: Abteilungsname für DATEV-Checks bei Einkaufsrechnungen setzen X-Git-Tag: release-3.4.1~560 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=078fc3723f616b44ebf14286b6aad16a90a6f61c;p=kivitendo-erp.git Abteilungsname für DATEV-Checks bei Einkaufsrechnungen setzen If we filter DATEV transaction via department we need also a name for export. At least if we have DATEV checks activated and force a valid department in DATEV filter (currently customer extension) --- diff --git a/SL/IR.pm b/SL/IR.pm index fbff03e1b..55987afcf 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -800,6 +800,8 @@ SQL # safety check datev export if ($::instance_conf->get_datev_check_on_purchase_invoice) { + # if we need department for kostenstelle in DATEV check + $form->{department} = SL::DB::Manager::Department->find_by(id => $form->{department_id})->description if $form->{department_id}; my $transdate = $::form->{invdate} ? DateTime->from_lxoffice($::form->{invdate}) : undef; $transdate ||= DateTime->today;