X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ed944ca355b3446d4e6c3fc22f748f77b64d58db..fce441db:/SL/AP.pm?ds=sidebyside diff --git a/SL/AP.pm b/SL/AP.pm index d4fe48428..7b5a46150 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -475,7 +475,7 @@ sub ap_transactions { } my @a = qw(transdate invnumber name); - push @a, "employee" if $self->{l_employee}; + push @a, "employee" if $form->{l_employee}; my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC'; my $sortorder = join(', ', map { "$_ $sortdir" } @a); @@ -642,6 +642,7 @@ sub setup_form { $j = 0; $k = 0; + next unless $form->{acc_trans}{$key}; for $i (1 .. scalar @{ $form->{acc_trans}{$key} }) { if ($key eq "AP_paid") {