]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/IS.pm
Unterstützung für PostgreSQL 12 Teil 3
[kivitendo-erp.git] / SL / IS.pm
index 894a8aea7ea3cb2cfad3a75574cd36edd6bbec92..f79952ec94098ce98cd9aa5ccc1f938b64140f93 100644 (file)
--- 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 =