Ansonsten werden Buchungen am 1.7.2020 (= startdate) nicht richtig
zugeordnet.
my $rows = selectall_hashref_query($::form, $::form->get_standard_dbh, <<"", $date);
SELECT DISTINCT ON (chart_id) chart_id, startdate, id
FROM taxkeys
my $rows = selectall_hashref_query($::form, $::form->get_standard_dbh, <<"", $date);
SELECT DISTINCT ON (chart_id) chart_id, startdate, id
FROM taxkeys
ORDER BY chart_id, startdate DESC;
for (@$rows) {
ORDER BY chart_id, startdate DESC;
for (@$rows) {