Преглед на файлове

13207: GRID: Ordenar Fecha DESC

ElPoteito преди 6 месеца
родител
ревизия
73fcfea796
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      lib/services/repo_service.dart

+ 2 - 2
lib/services/repo_service.dart

@@ -549,7 +549,7 @@ class RepoService<T> {
     List<Map<String, dynamic>> result = await dbClient!.query('Pedido',
         limit: limit,
         offset: offset,
-        orderBy: 'id DESC',
+        orderBy: 'peticion DESC',
         where: 'idMesa IS NULL');
     return result.map((map) => Pedido.fromJson(map)).toList();
   }
@@ -561,7 +561,7 @@ class RepoService<T> {
       'Pedido',
       limit: limit,
       offset: offset,
-      orderBy: 'id DESC',
+      orderBy: 'peticion DESC',
       where: 'idMesa IS NOT NULL',
     );
     return result.map((map) => Pedido.fromJson(map)).toList();