X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/7e19c2165ee3b934f4e685b256bb3a261d59a915..0e4da157188830a45e606285bca5d0ea668bbcf5:/SL/AR.pm diff --git a/SL/AR.pm b/SL/AR.pm index 65ab4ce01..74bfeee60 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -573,6 +573,15 @@ sub ar_transactions { } }; + my ($cvar_where, @cvar_values) = CVar->build_filter_query('module' => 'CT', + 'trans_id_field' => 'c.id', + 'filter' => $form, + ); + if ($cvar_where) { + $where .= qq| AND ($cvar_where)|; + push @values, @cvar_values; + } + my @a = qw(transdate invnumber name); push @a, "employee" if $form->{l_employee}; my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC';