update carton

This commit is contained in:
Thinzar Win
2020-12-07 17:18:26 +06:30
parent bb264a7a1c
commit a1cac94275
9 changed files with 935 additions and 196 deletions

View File

@@ -4,6 +4,7 @@ class CargoType {
double rate;
double weight;
bool isChecked;
int qty;
double get calAmount => (calRate ?? 0) * (calWeight ?? 0);
@@ -20,15 +21,15 @@ class CargoType {
calRate: map['cal_rate']?.toDouble() ?? 0,
);
}
CargoType({
this.id,
this.name,
this.rate,
this.weight,
this.calWeight,
this.calRate,
this.isChecked = false,
});
CargoType(
{this.id,
this.name,
this.rate,
this.weight,
this.calWeight,
this.calRate,
this.isChecked = false,
this.qty = 0});
Map<String, dynamic> toMap() {
return {