update invoice page
This commit is contained in:
@@ -179,14 +179,15 @@ class CartonModel extends BaseModel {
|
||||
String path = "/$cartons_collection";
|
||||
var querySnap = await Firestore.instance
|
||||
.collection(path)
|
||||
// .where("fcs_shipment_id", isEqualTo: fcsShipmentID)
|
||||
.where("fcs_shipment_id", isEqualTo: fcsShipmentID)
|
||||
.where("user_id", isEqualTo: userID)
|
||||
.where("is_deleted", isEqualTo: false)
|
||||
.where("is_invoiced", isEqualTo: false)
|
||||
.getDocuments();
|
||||
return querySnap.documents
|
||||
List<Carton> cartons = querySnap.documents
|
||||
.map((e) => Carton.fromMap(e.data, e.documentID))
|
||||
.toList();
|
||||
return cartons;
|
||||
}
|
||||
|
||||
Future<List<Carton>> getMixCartonsByFcsShipment(String fcsShipmentID) async {
|
||||
|
||||
Reference in New Issue
Block a user