X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/481f935ee2ce2d1605bea85ed7351932ea2bd281..8145351db7044546499d15e3147a3f59f988310d:/SL/DN.pm diff --git a/SL/DN.pm b/SL/DN.pm index 0ac071c6f..45248a55a 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -600,6 +600,11 @@ sub get_dunning { push(@values, $form->{dunningto}); } + if ($form->{salesman_id}) { + $where .= qq| AND a.salesman_id = ?|; + push(@values, conv_i($form->{salesman_id})); + } + my %sort_columns = ( 'dunning_description' => [ qw(dn.dunning_description customername invnumber) ], 'customername' => [ qw(customername invnumber) ],