From: Jan Büren Date: Sun, 17 Nov 2019 12:20:43 +0000 (+0100) Subject: Einkaufsrechnung -> Suche. Fälligkeitsdatum als Suchfilter hinzugefügt X-Git-Tag: release-3.5.6.1~434 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/commitdiff_plain/548754580af9ad52ed6d49dd4665d4888664d5fc Einkaufsrechnung -> Suche. Fälligkeitsdatum als Suchfilter hinzugefügt --- 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}); diff --git a/templates/webpages/ap/search.html b/templates/webpages/ap/search.html index 5b6eb3a6a..601cbb2a2 100644 --- a/templates/webpages/ap/search.html +++ b/templates/webpages/ap/search.html @@ -49,6 +49,14 @@ [% L.date_tag('transdateto') %] + + [% 'Due Date' | $T8 %] + + [% L.date_tag('duedatefrom') %] + [% 'Bis' | $T8 %] + [% L.date_tag('duedateto') %] + +