fix fcs shipment service

This commit is contained in:
2024-09-22 16:49:59 +06:30
parent 4036c6ae49
commit 1d171bad69
66 changed files with 1697 additions and 156 deletions

View File

@@ -1,6 +1,6 @@
import 'dart:async';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:fcs/domain/constants.dart';
import 'package:fcs/constants.dart';
import 'package:fcs/domain/entities/carton.dart';
import 'package:fcs/helpers/api_helper.dart';
import 'package:fcs/helpers/firebase_helper.dart';
@@ -47,7 +47,7 @@ class CartonDataProvider {
.collection(path)
.where("carton_number", isEqualTo: term)
.where("is_deleted", isEqualTo: false)
.orderBy("created_at",descending: true)
.orderBy("created_at", descending: true)
.get();
return querySnap.docs.map((e) => Carton.fromMap(e.data(), e.id)).toList();
} catch (e) {