From: G. Richardson Date: Sun, 21 Jun 2020 22:11:11 +0000 (+0200) Subject: Konten bearbeiten - Steuerschlüssel nach Datum sortieren X-Git-Tag: release-3.5.6.1~160^2~12 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a5448e9828a527e85aade8acdd7346e469fdc306;p=kivitendo-erp.git Konten bearbeiten - Steuerschlüssel nach Datum sortieren Es gab keine Sortierreihenfolge. --- 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,