update carton
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user