update carton

This commit is contained in:
Thinzar Win
2021-01-11 19:35:26 +06:30
parent 8a813023f4
commit db07e01f85
19 changed files with 211 additions and 137 deletions

View File

@@ -40,6 +40,7 @@ class Carton {
String mixCartonNumber;
String cartonSizeID;
String cartonSizeName;
double cartonWeight;
int rate;
int weight;
@@ -174,7 +175,8 @@ class Carton {
this.cartonSizeName,
this.mixBoxType,
this.mixCartons,
this.mixCartonIDs});
this.mixCartonIDs,
this.cartonWeight});
Map<String, dynamic> toMap() {
List _cargoTypes = cargoTypes?.map((c) => c.toMap())?.toList() ?? [];
@@ -249,6 +251,7 @@ class Carton {
senderFCSID: map['sender_fcs_id'],
senderName: map['sender_name'],
mixCartonIDs: List<String>.from(map['mix_carton_ids'] ?? []),
cartonWeight: (map['carton_weight'] ?? 0).toDouble(),
);
}