Abteilungsname an Druckvorlagen-System übergeben
authorJan Büren <jan@kivitendo-premium.de>
Wed, 18 Nov 2015 12:14:39 +0000 (13:14 +0100)
committerJan Büren <jan@kivitendo-premium.de>
Wed, 18 Nov 2015 12:14:39 +0000 (13:14 +0100)
Betrifft Einkaufs- und Verkaufslieferschein, sowie die Verkaufsrechnung

SL/DO.pm
SL/IS.pm

index a293239..4e109d8 100644 (file)
--- 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};
 
index 62ba10e..b275833 100644 (file)
--- 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};