Merge branch 'master' of git@lx-office.linet-services.de:lx-office-erp
authorG. Richardson <information@lx-office-hosting.de>
Mon, 11 Jul 2011 11:49:24 +0000 (13:49 +0200)
committerG. Richardson <information@lx-office-hosting.de>
Mon, 11 Jul 2011 11:49:24 +0000 (13:49 +0200)
bin/mozilla/ar.pl

index fc318ec..0fcc0e4 100644 (file)
@@ -1425,6 +1425,14 @@ sub ar_transactions {
   if ($form->{open}) {
     push @options, $locale->text('Open');
   }
+  if ($form->{employee_id}) {
+    my $employee = SL::DB::Employee->new(id => $form->{employee_id})->load;
+    push @options, $locale->text('Employee') . ' : ' . $employee->name;
+  }
+  if ($form->{salesman_id}) {
+    my $salesman = SL::DB::Employee->new(id => $form->{salesman_id})->load;
+    push @options, $locale->text('Salesman') . ' : ' . $salesman->name;
+  }
   if ($form->{closed}) {
     push @options, $locale->text('Closed');
   }