mmmh
All checks were successful
Build and Release FLUX (Multi-Platform) / build-android (push) Successful in 2m11s
Build and Release FLUX (Multi-Platform) / build-web (push) Successful in 1m1s
Build and Release FLUX (Multi-Platform) / build-windows (push) Successful in 8m5s

This commit is contained in:
2026-06-04 12:34:38 +02:00
parent 01515910b6
commit 4efc3ce182
14 changed files with 517 additions and 426 deletions

View File

@@ -112,7 +112,7 @@ class OperationsRepository {
}
// --- RECUPERO PAGINATO CON FILTRI E JOIN ---
Future<List<OperationModel>> fetchOperations({
/* Future<List<OperationModel>> fetchOperations({
required String companyId,
String? storeId,
String? staffId,
@@ -172,9 +172,9 @@ class OperationsRepository {
} catch (e) {
throw Exception('$e');
}
}
} */
Stream<List<OperationModel>> watchStoreOperations({
Stream<List<Map<String, dynamic>>> watchStoreOperations({
required String storeId,
required int limit,
}) {
@@ -183,11 +183,7 @@ class OperationsRepository {
.stream(primaryKey: ['id'])
.eq('store_id', storeId)
.order('created_at', ascending: false)
.limit(limit)
.map(
(listOfMaps) =>
listOfMaps.map((map) => OperationModel.fromMap(map)).toList(),
);
.limit(limit);
}
// --- SALVATAGGIO COMPLETO (PRIMA PADRE, POI FIGLI) ---