Selaa lähdekoodia

13207: GRID: Ordenar Fecha DESC

ElPoteito 6 kuukautta sitten
vanhempi
commit
73fcfea796
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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();