]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/Order.pm
Order-Controller: beim Neuberechnen auf Reihenfolge achten, …
[mfinanz.git] / SL / Controller / Order.pm
index 52577bd1b47aabeb7d1f9a4fa944d9709cd57c74..f6afed9a807d80e0c3af46326dffd34adcfb4710 100644 (file)
@@ -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