X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/fec0904532e2136a1a769f568c351f4875257d56..431181fc05f4cf41c7609e3b0950171b3cb0c90d:/SL/DN.pm diff --git a/SL/DN.pm b/SL/DN.pm index 2566cbed7..e4e0d0e93 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -324,7 +324,7 @@ sub get_invoices { my %columns = ( "ordnumber" => "a.ordnumber", "invnumber" => "a.invnumber", - "notes" => "a.notes", + "notes" => "a.notes", ); foreach my $key (keys(%columns)) { next unless ($form->{$key}); @@ -333,7 +333,7 @@ sub get_invoices { } if ($form->{dunning_level}) { - $where .= qq| AND a.dunning_config_id = ?|; + $where .= qq| AND nextcfg.id = ?|; push(@values, conv_i($form->{dunning_level})); }