X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/16d5a584a54b10a4a8cbd85d4bfb09836abb78d7..ca247333e470aefad12228a8a17c7d76bc598c74:/SL/OE.pm diff --git a/SL/OE.pm b/SL/OE.pm index 0492ef37d..a94e9c2b1 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.id|; } else { - $sortorder = qq|ORDER BY a.oid|; + $sortorder = qq|ORDER BY a.id|; } $query = qq|SELECT p.partnumber, p.description, p.unit, a.qty, | .