X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FAM.pm;h=b7c60033b9c7a8280c238e4757d147e958591371;hb=dc7162f360873e40872e43bb3be4cc69f4833461;hp=abf3c92c0bc0068a36a1d2d5ff3eceaa3edae647;hpb=4730ac696b8f67cd75ceaedfa9a1db1853ad0011;p=kivitendo-erp.git 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,