From: G. Richardson Date: Tue, 30 Jun 2020 12:02:41 +0000 (+0200) Subject: Chart cache_taxkeys - startdate korrekt abfragen X-Git-Tag: release-3.5.6.1~160^2~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c4cea46304b614d334cb4cb932aa65e53cf9abf2;p=kivitendo-erp.git Chart cache_taxkeys - startdate korrekt abfragen Ansonsten werden Buchungen am 1.7.2020 (= startdate) nicht richtig zugeordnet. --- diff --git a/SL/DB/Manager/Chart.pm b/SL/DB/Manager/Chart.pm index 4d11960d7..d70e7f939 100644 --- a/SL/DB/Manager/Chart.pm +++ b/SL/DB/Manager/Chart.pm @@ -135,7 +135,7 @@ sub cache_taxkeys { my $rows = selectall_hashref_query($::form, $::form->get_standard_dbh, <<"", $date); SELECT DISTINCT ON (chart_id) chart_id, startdate, id FROM taxkeys - WHERE startdate < ? + WHERE startdate <= ? ORDER BY chart_id, startdate DESC; for (@$rows) {