X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b638b6a13dea5935637b3c38b1a3252053fa1a46..dc78c22510c618deef355808393ecc7bcde319a3:/SL/AP.pm diff --git a/SL/AP.pm b/SL/AP.pm index 1aa6a18ff..79b1fa802 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -556,6 +556,14 @@ sub ap_transactions { $where .= " AND a.transdate <= ?"; push(@values, trim($form->{transdateto})); } + if ($form->{duedatefrom}) { + $where .= " AND a.duedate >= ?"; + push(@values, trim($form->{duedatefrom})); + } + if ($form->{duedateto}) { + $where .= " AND a.duedate <= ?"; + push(@values, trim($form->{duedateto})); + } if ($form->{open} || $form->{closed}) { unless ($form->{open} && $form->{closed}) { $where .= " AND a.amount <> a.paid" if ($form->{open});