From a5448e9828a527e85aade8acdd7346e469fdc306 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Mon, 22 Jun 2020 00:11:11 +0200 Subject: [PATCH] =?utf8?q?Konten=20bearbeiten=20-=20Steuerschl=C3=BCssel?= =?utf8?q?=20nach=20Datum=20sortieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Es gab keine Sortierreihenfolge. --- SL/AM.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/AM.pm b/SL/AM.pm index abf3c92c0..b7c60033b 100644 --- a/SL/AM.pm +++ b/SL/AM.pm @@ -106,7 +106,7 @@ sub get_account { # get the taxkeys of the account $form->{ACCOUNT_TAXKEYS} = []; - foreach my $taxkey ( @{ $chart_obj->taxkeys } ) { + foreach my $taxkey ( sort { $b->startdate <=> $a->startdate } @{ $chart_obj->taxkeys } ) { push @{ $form->{ACCOUNT_TAXKEYS} }, { id => $taxkey->id, chart_id => $taxkey->chart_id, tax_id => $taxkey->tax_id, -- 2.20.1