X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/8bee4bac5b3e562f26e866ca9ab337af20c97314..fce441db:/SL/AP.pm diff --git a/SL/AP.pm b/SL/AP.pm index ed0fe98c6..7b5a46150 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -37,6 +37,8 @@ package AP; use SL::DBUtils; use SL::MoreCommon; +use strict; + sub post_transaction { $main::lxdebug->enter_sub(); @@ -473,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); @@ -640,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") {