update carton and add staff name

This commit is contained in:
Thinzar Win
2020-12-10 20:06:15 +06:30
parent d540bfbd30
commit d1261a33c1
19 changed files with 1030 additions and 330 deletions

View File

@@ -4,14 +4,18 @@ class ShipmentStatus {
String status;
DateTime date;
bool done;
ShipmentStatus({this.status, this.date, this.done});
String staffId;
String staffName;
ShipmentStatus(
{this.status, this.date, this.done, this.staffId, this.staffName});
factory ShipmentStatus.fromMap(Map<String, dynamic> map) {
var _date = (map['date'] as Timestamp);
return ShipmentStatus(
status: map['status'],
date: _date == null ? null : _date.toDate(),
done: map['done'],
);
status: map['status'],
date: _date == null ? null : _date.toDate(),
done: map['done'],
staffId: map['staff_id'],
staffName: map['staff_name']);
}
}