OrderItem-Manager: Sortierung: runningnumber gibt es nicht -> position
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 29 Mar 2019 15:18:29 +0000 (16:18 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 29 Mar 2019 15:18:29 +0000 (16:18 +0100)
SL/DB/Manager/OrderItem.pm

index 1945a0b..379e1fd 100644 (file)
@@ -34,7 +34,7 @@ sub _sort_spec {
                         qty           => [ 'qty'                  ],
                         ordnumber     => [ 'order.ordnumber'      ],
                         customer      => [ 'lower(customer.name)', ],
-                        position      => [ 'trans_id', 'runningnumber' ],
+                        position      => [ 'trans_id', 'position' ],
                         reqdate       => [ 'COALESCE(orderitems.reqdate, order.reqdate)' ],
                         orddate       => [ 'order.orddate' ],
                         sellprice     => [ 'orderitems.sellprice' ],