X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=SL%2FDO.pm;h=4ef285461b645d6fe745f7b8c3502f6e978715c2;hb=2134f89abb07c18b07b3121e80d243af03ede0e0;hp=a012ddb1340c620a496fb938fca1384a86403daa;hpb=429297b41e844d85dbf102c58aedd4575d69733c;p=kivitendo-erp.git diff --git a/SL/DO.pm b/SL/DO.pm index a012ddb13..4ef285461 100644 --- a/SL/DO.pm +++ b/SL/DO.pm @@ -33,6 +33,7 @@ package DO; +use Carp; use List::Util qw(max); use YAML; @@ -1054,9 +1055,9 @@ sub order_details { $h_pg->finish(); $h_bin_wh->finish(); + $form->{department} = SL::DB::Manager::Department->find_by(id => $form->{department_id})->description if $form->{department_id}; $form->{delivery_term} = SL::DB::Manager::DeliveryTerm->find_by(id => $form->{delivery_term_id} || undef); $form->{delivery_term}->description_long($form->{delivery_term}->translated_attribute('description_long', $form->{language_id})) if $form->{delivery_term} && $form->{language_id}; - $form->{department} = SL::DB::Manager::Department->find_by(id => $form->{department_id})->description if $form->{department_id}; $form->{username} = $myconfig->{name};