add packages

This commit is contained in:
Sai Naw Wun
2020-06-03 00:42:31 +06:30
parent d41d48b405
commit c84e1beb9d
22 changed files with 439 additions and 265 deletions

View File

@@ -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});
}