update cargo type form from rate, update carton info and form
This commit is contained in:
@@ -86,10 +86,10 @@ class _DeliveryInfoState extends State<DeliveryInfo> {
|
||||
_loadPackages() async {
|
||||
if (!isFromPackages && !isSmallBag) return;
|
||||
|
||||
if (_box.cartonType == carton_from_packages && _box.userID == null) return;
|
||||
if (_box.cartonType == carton_from_packages && _box.consigneeID == null) return;
|
||||
PackageModel packageModel =
|
||||
Provider.of<PackageModel>(context, listen: false);
|
||||
List<Package> packages = await packageModel.getPackages(_box.userID!, [
|
||||
List<Package> packages = await packageModel.getPackages(_box.consigneeID!, [
|
||||
package_processed_status,
|
||||
package_packed_status,
|
||||
package_shipped_status,
|
||||
@@ -137,13 +137,13 @@ class _DeliveryInfoState extends State<DeliveryInfo> {
|
||||
iconData: Ionicons.ios_airplane,
|
||||
);
|
||||
final fcsIDBox = DisplayText(
|
||||
text: _box.fcsID,
|
||||
text: _box.consigneeFCSID,
|
||||
labelTextKey: "box.fcs.id",
|
||||
icon: FcsIDIcon(),
|
||||
);
|
||||
|
||||
final customerNameBox = DisplayText(
|
||||
text: _box.userName,
|
||||
text: _box.consigneeName,
|
||||
labelTextKey: "box.name",
|
||||
iconData: Icons.person,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user