X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ca247333e470aefad12228a8a17c7d76bc598c74..46547316aaf51a45a52deabacafa5ea3c637d048:/SL/IS.pm diff --git a/SL/IS.pm b/SL/IS.pm index 894a8aea7..f79952ec9 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -442,9 +442,9 @@ sub invoice_details { my $sortorder = ""; if ($form->{groupitems}) { $sortorder = - qq|ORDER BY pg.partsgroup, a.id|; + qq|ORDER BY pg.partsgroup, a.position|; } else { - $sortorder = qq|ORDER BY a.id|; + $sortorder = qq|ORDER BY a.position|; } my $query =