From c76aac82e44a7089898f8b1d37006e92390d3cc4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 29 Jan 2019 17:59:22 +0100 Subject: [PATCH] =?utf8?q?PTC:=20Sortierung=20von=20items=20beachten=20bei?= =?utf8?q?=20Rechnungen=20die=20nachtr=C3=A4glich=20ge=C3=A4ndert=20wurden?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit (cherry picked from commit eacfe1d260a6f9d4c12aa508b2c4d4cc018508c8) --- SL/DB/Helper/PriceTaxCalculator.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DB/Helper/PriceTaxCalculator.pm b/SL/DB/Helper/PriceTaxCalculator.pm index 80c804728..cadc09676 100644 --- a/SL/DB/Helper/PriceTaxCalculator.pm +++ b/SL/DB/Helper/PriceTaxCalculator.pm @@ -56,7 +56,7 @@ sub calculate_prices_and_taxes { SL::DB::Manager::Chart->cache_taxkeys(date => $self->transdate); my $idx = 0; - foreach my $item ($self->items) { + foreach my $item (@{ $self->items_sorted }) { $idx++; _calculate_item($self, $item, $idx, \%data, %params); } -- 2.20.1