update carton
This commit is contained in:
@@ -78,7 +78,7 @@ const shipment_courier_dropoff = "Courier drop off";
|
||||
|
||||
//Carton types
|
||||
const carton_from_packages = "From packages";
|
||||
const carton_from_cargos="From cargos";
|
||||
const carton_from_cartons="From cartons";
|
||||
const carton_from_shipments = "From shipments";
|
||||
const carton_mix_carton = "Mix carton";
|
||||
const carton_small_bag = "Small bag";
|
||||
|
||||
@@ -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(),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user