From a42ab0104043c2659ec997768fd55706a6ba45bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 20 Mar 2019 10:43:27 +0100 Subject: [PATCH] =?utf8?q?Order-Controller:=20beim=20Neuberechnen=20auf=20?= =?utf8?q?Reihenfolge=20achten,=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … sonst kam es vor, dass die Zeilensummen durcheinander kamen, da die Reihenfolge der items von PTC und Order nicht zwingend gleich ist. Wenn beide sortieren (PTC tat dies schon), dann stimmt's. --- 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 52577bd1b..f6afed9a8 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1383,7 +1383,7 @@ sub recalc { tax => $tax }); } - pairwise { $a->{linetotal} = $b->{linetotal} } @{$self->order->items}, @{$pat{items}}; + pairwise { $a->{linetotal} = $b->{linetotal} } @{$self->order->items_sorted}, @{$pat{items}}; } # get data for saving, printing, ..., that is not changed in the form -- 2.20.1