update processing,customer and staff

This commit is contained in:
tzw
2021-10-11 17:09:47 +06:30
parent bfa6b8c2ed
commit 8df11b70a0
22 changed files with 158 additions and 59 deletions

View File

@@ -29,7 +29,7 @@ class DeliveryAddress {
city: map['city'],
state: map['state'],
phoneNumber: map['phone_number'],
isDefault: map['is_defalut'] ?? false,
isDefault: map['is_default'] ?? false,
);
}
@@ -46,6 +46,10 @@ class DeliveryAddress {
};
}
Map<String, dynamic> toMapForDefault() {
return {"id": id};
}
bool isChangedForEdit(DeliveryAddress deliveryAddress) {
return deliveryAddress.fullName != this.fullName ||
deliveryAddress.phoneNumber != this.phoneNumber ||

View File

@@ -45,6 +45,10 @@ class Privilege {
iconData = MaterialCommunityIcons.inbox_arrow_down;
} else if (this.id == privilege_pickup) {
iconData = SimpleLineIcons.direction;
} else if (this.id == privilege_collect) {
iconData = MaterialCommunityIcons.layers;
} else if (this.id == privilege_report) {
iconData = Feather.file_text;
} else {
iconData = MaterialCommunityIcons.account_question;
}