From 078fc3723f616b44ebf14286b6aad16a90a6f61c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Wed, 2 Dec 2015 09:54:04 +0100 Subject: [PATCH] =?utf8?q?Abteilungsname=20f=C3=BCr=20DATEV-Checks=20bei?= =?utf8?q?=20Einkaufsrechnungen=20setzen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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) --- SL/IR.pm | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.20.1