X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/b38ecee705bad983c7f022a32b65a90a0c4ccbf2..e24e657067548d45e6a23ff56ee4c3ee69b5687b:/SL/AR.pm diff --git a/SL/AR.pm b/SL/AR.pm index 3ee8e0d92..2a80dc0a7 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -549,6 +549,14 @@ sub ar_transactions { $where .= " AND a.transdate <= ?"; push(@values, $form->{transdateto}); } + if ($form->{duedatefrom}) { + $where .= " AND a.duedate >= ?"; + push(@values, $form->{duedatefrom}); + } + if ($form->{duedateto}) { + $where .= " AND a.duedate <= ?"; + push(@values, $form->{duedateto}); + } if ($form->{open} || $form->{closed}) { unless ($form->{open} && $form->{closed}) { $where .= " AND a.amount <> a.paid" if ($form->{open});