Salesmananzeige in Mahnungsberichten
[kivitendo-erp.git] / bin / mozilla / dn.pl
index 872919c..651698c 100644 (file)
@@ -358,13 +358,9 @@ sub show_dunning {
     'dunning_duedate'     => { 'text' => $locale->text('Dunning Duedate') },
     'fee'                 => { 'text' => $locale->text('Total Fees') },
     'interest'            => { 'text' => $locale->text('Interest') },
+    'salesman'            => { 'text' => $locale->text('Salesperson'), 'visible' => $form->{l_salesman} ? 1 : 0 },
   );
 
-  if ($form->{l_salesman}) {
-   # Show salesman column
-    $column_defs{'salesman'} = ( { 'text' =>  $locale->text('Salesperson') } );
-  }
-
   $report->set_columns(%column_defs);
   $report->set_column_order(qw(checkbox dunning_description customername invnumber transdate
                                duedate amount dunning_date dunning_duedate fee interest salesman));