update carton list and editor

This commit is contained in:
tzw
2024-02-01 18:07:40 +06:30
parent eff1ae4688
commit 24f2dc110c
20 changed files with 1951 additions and 954 deletions

View File

@@ -87,10 +87,11 @@ const shipment_local_dropoff = "Local drop off";
const shipment_courier_dropoff = "Courier drop off";
//Carton types
const carton_from_packages = "From packages";
const carton_from_packages = "Carton for packages";
const carton_mix_carton = "Mix carton";
const carton_from_cartons = "From cartons";
const carton_from_shipments = "From shipments";
const carton_mix_carton = "Mix carton";
const carton_small_bag = "Small bag";
const carton_mix_box = "Mix box";

View File

@@ -36,7 +36,7 @@ class Carton {
String? mixCartonNumber;
String? cartonSizeID;
String? cartonSizeName;
double? cartonWeight;
double cartonWeight;
int rate;
int weight;
@@ -158,7 +158,7 @@ class Carton {
this.mixBoxType,
this.mixCartons = const [],
this.mixCartonIDs = const [],
this.cartonWeight});
this.cartonWeight =0});
Map<String, dynamic> toMap() {
List _cargoTypes = cargoTypes.map((c) => c.toMap()).toList();

View File

@@ -0,0 +1,7 @@
enum StepType { TYPE, CARTONS, SIZE, PACKAGES, CARGOS, SUBMIT }
class LocalStep {
String lable;
StepType stepType;
LocalStep({required this.lable, required this.stepType});
}