update staff list, add pin editor and privilege editor

This commit is contained in:
tzw
2024-02-14 16:58:45 +06:30
parent 106ddded29
commit 13e6e232d5
20 changed files with 770 additions and 113 deletions

View File

@@ -34,6 +34,7 @@ const pkg_files_path = "/packages";
const shipment_labels_files_path = "/shipment_labels";
const receipt_labels_files_path = "/receipts";
const pickups_files_path = "/pickups";
const carton_files_path = "/cartons";
// Link page
const page_payment_methods = "payment_methods";

View File

@@ -47,7 +47,6 @@ class Carton {
int weight;
String? packageType;
String? pickUpID;
List<String> photos = [];
List<String> photoUrls;
String? remark;
DateTime? arrivedDate;

View File

@@ -19,6 +19,9 @@ class User {
int userUnseenCount;
int fcsUnseenCount;
String? preferCurrency;
bool enablePinLogin;
String? pinDigit;
String? confirmPinDigit;
String get initial =>
name != null && name != "" ? name!.substring(0, 1) : "?";
@@ -68,7 +71,10 @@ class User {
this.lastMessageTime,
this.userUnseenCount = 0,
this.fcsUnseenCount = 0,
this.preferCurrency});
this.preferCurrency,
this.enablePinLogin = false,
this.pinDigit,
this.confirmPinDigit});
factory User.fromJson(Map<String, dynamic> json) {
return User(