From 3b8f66984954fc8405e467c12ffada97216d5ee3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 12 Oct 2015 14:39:16 +0200 Subject: [PATCH] Auftrags-Controller: Steuern bei der Anzeige nach Steuersatz sortieren. --- SL/Controller/Order.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 59337da8a..ee00b1546 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -451,7 +451,7 @@ sub build_tax_rows { my ($self) = @_; my $rows_as_html; - foreach my $tax (@{ $self->{taxes} }) { + foreach my $tax (sort { $a->{tax}->rate cmp $b->{tax}->rate } @{ $self->{taxes} }) { $rows_as_html .= $self->p->render('order/tabs/_tax_row', TAX => $tax, TAXINCLUDED => $self->order->taxincluded); } return $rows_as_html; -- 2.20.1