add prompt confirmation and update carton
This commit is contained in:
@@ -3,7 +3,9 @@ class CustomDuty {
|
||||
String productType;
|
||||
String desc;
|
||||
double fee;
|
||||
CustomDuty({this.id, this.productType, this.desc, this.fee});
|
||||
double shipmentRate;
|
||||
CustomDuty(
|
||||
{this.id, this.productType, this.desc, this.fee, this.shipmentRate});
|
||||
|
||||
factory CustomDuty.fromMap(Map<String, dynamic> map, String id) {
|
||||
return CustomDuty(
|
||||
@@ -28,4 +30,11 @@ class CustomDuty {
|
||||
|
||||
@override
|
||||
int get hashCode => id.hashCode;
|
||||
|
||||
bool isChangedForEdit(CustomDuty customDuty) {
|
||||
return customDuty.productType != this.productType ||
|
||||
customDuty.fee != this.fee
|
||||
// ||customDuty.shipmentRate != this.shipmentRate
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user