add packages
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
class Status {
|
||||
String status;
|
||||
DateTime date;
|
||||
bool done;
|
||||
Status({this.status, this.date, this.done});
|
||||
}
|
||||
|
||||
class Package {
|
||||
String id;
|
||||
String shipmentNumber;
|
||||
@@ -9,6 +16,7 @@ class Package {
|
||||
String receiverNumber;
|
||||
String boxNumber;
|
||||
String status;
|
||||
String cargoDesc;
|
||||
|
||||
int rate;
|
||||
int weight;
|
||||
@@ -24,6 +32,8 @@ class Package {
|
||||
shipmentNumber + "-" + receiverNumber + " #" + boxNumber;
|
||||
double get price => rate.toDouble() * weight;
|
||||
|
||||
List<Status> statusHistory;
|
||||
|
||||
Package(
|
||||
{this.id,
|
||||
this.shipmentNumber,
|
||||
@@ -40,5 +50,7 @@ class Package {
|
||||
this.pickUpID,
|
||||
this.remark,
|
||||
this.status,
|
||||
this.arrivedDate});
|
||||
this.arrivedDate,
|
||||
this.cargoDesc,
|
||||
this.statusHistory});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user