update cargo type form from rate, update carton info and form

This commit is contained in:
tzw
2024-09-25 21:49:09 +06:30
parent 1be18c08a9
commit 02e079c514
51 changed files with 1407 additions and 643 deletions

View File

@@ -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,
);

View File

@@ -48,7 +48,7 @@ class DeliveryListRow extends StatelessWidget {
Padding(
padding: const EdgeInsets.only(top: 5),
child: new Text(
box.userName ?? "",
box.consigneeName ?? "",
style: new TextStyle(
fontSize: 15.0, color: Colors.grey),
),