X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/99382a645d0cfbc0ded9c48564700f80e9a6f932..ffb7da30ec503c647ae493ba8ffd48cc43fa44e7:/SL/OE.pm diff --git a/SL/OE.pm b/SL/OE.pm index 0492ef37d..d86b6c0ec 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -1528,9 +1528,9 @@ sub order_details { # get parts and push them onto the stack my $sortorder = ""; if ($form->{groupitems}) { - $sortorder = qq|ORDER BY pg.partsgroup, a.oid|; + $sortorder = qq|ORDER BY pg.partsgroup, a.position|; } else { - $sortorder = qq|ORDER BY a.oid|; + $sortorder = qq|ORDER BY a.position|; } $query = qq|SELECT p.partnumber, p.description, p.unit, a.qty, | .