From: Jan Büren Date: Wed, 18 Nov 2015 12:14:39 +0000 (+0100) Subject: Abteilungsname an Druckvorlagen-System übergeben X-Git-Tag: release-3.4.1~587 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=186375fcbb660834899ed2a456fbbe45a3f17e9e;p=kivitendo-erp.git Abteilungsname an Druckvorlagen-System übergeben Betrifft Einkaufs- und Verkaufslieferschein, sowie die Verkaufsrechnung --- diff --git a/SL/DO.pm b/SL/DO.pm index a293239d9..4e109d812 100644 --- a/SL/DO.pm +++ b/SL/DO.pm @@ -1055,6 +1055,7 @@ sub order_details { $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})->load->description if $form->{department_id}; $form->{username} = $myconfig->{name}; diff --git a/SL/IS.pm b/SL/IS.pm index 62ba10e18..b275833cf 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -529,6 +529,7 @@ sub invoice_details { $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})->load->description if $form->{department_id}; $form->{username} = $myconfig->{name};