Salesmananzeige in Mahnungsberichten
authorDavid Ohlbrecht <ohlbrecht@ok-it-services.de>
Mon, 16 Nov 2009 15:04:45 +0000 (16:04 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 16 Nov 2009 15:04:45 +0000 (16:04 +0100)
"kosmetische" Verbesserungen und zusätzliches Feld im Template.

bin/mozilla/dn.pl
templates/webpages/dunning/search_master.html

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));
index 971ef1a..f2f7c91 100644 (file)
       <tr>
        <th align="right" nowrap><translate>Show old dunnings</translate></th>
        <td><input type="checkbox" value="1" name="showold"></td>
+       <th align="right" nowrap><translate>Show Salesman</translate></th>
+       <td><input type="checkbox" value="1" name="l_salesman"></td>
       </tr>
      </table>
     </td>