update carton and fcs shipment
This commit is contained in:
@@ -95,6 +95,13 @@ class FcsShipmentModel extends BaseModel {
|
||||
pageQuery.where("status", isEqualTo: fcs_shipment_canceled_status);
|
||||
}
|
||||
|
||||
// delivered status
|
||||
if (index == 7) {
|
||||
col = col.where("status", isEqualTo: fcs_shipment_delivered_status);
|
||||
pageQuery =
|
||||
pageQuery.where("status", isEqualTo: fcs_shipment_delivered_status);
|
||||
}
|
||||
|
||||
pageQuery = pageQuery.orderBy("update_time", descending: true);
|
||||
|
||||
fcsShipments?.close();
|
||||
@@ -272,6 +279,11 @@ class FcsShipmentModel extends BaseModel {
|
||||
.updateFcsShipmentStatus(id, fcs_shipment_canceled_status);
|
||||
}
|
||||
|
||||
Future<void> deliver(String id) {
|
||||
return Services.instance.fcsShipmentService
|
||||
.updateFcsShipmentStatus(id, fcs_shipment_delivered_status);
|
||||
}
|
||||
|
||||
Future<String> report(FcsShipment fcsShipment) {
|
||||
return Services.instance.fcsShipmentService.report(fcsShipment);
|
||||
}
|
||||
@@ -285,7 +297,8 @@ class FcsShipmentModel extends BaseModel {
|
||||
fcs_shipment_processed_status,
|
||||
fcs_shipment_shipped_status,
|
||||
fcs_shipment_arrived_status,
|
||||
fcs_shipment_invoiced_status
|
||||
fcs_shipment_invoiced_status,
|
||||
fcs_shipment_delivered_status
|
||||
])
|
||||
.where("is_deleted", isEqualTo: false)
|
||||
.orderBy("update_time", descending: true)
|
||||
|
||||
Reference in New Issue
Block a user