add prompt confirmation and update carton
This commit is contained in:
@@ -20,4 +20,9 @@ class DiscountByWeight {
|
||||
'discount': discount,
|
||||
};
|
||||
}
|
||||
|
||||
bool isChangedForEdit(DiscountByWeight discountByWeight) {
|
||||
return discountByWeight.weight != this.weight ||
|
||||
discountByWeight.discount != this.discount;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user