X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/3b31a829befaac03cfaee61c8a267b2593143569..d04a436f2bb85dae11fd9afbb1c0f584729d93cf:/SL/IR.pm diff --git a/SL/IR.pm b/SL/IR.pm index fbff03e1b..b0aa13430 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; @@ -1283,9 +1285,9 @@ sub retrieve_item { qq|SELECT p.id, p.partnumber, p.description, p.lastcost AS sellprice, p.listprice, p.unit, p.assembly, p.onhand, p.formel, - p.notes AS partnotes, p.notes AS longdescription, p.not_discountable, + p.not_discountable, p.inventory_accno_id, p.price_factor_id, - p.ean, + p.ean, p.notes, pfac.factor AS price_factor,