update box

This commit is contained in:
Thinzar Win
2020-10-09 17:28:42 +06:30
parent 776ebf52ee
commit c3a44b1909
6 changed files with 693 additions and 451 deletions

View File

@@ -25,6 +25,7 @@ class Package {
String boxNumber;
String cargoDesc;
String market;
bool isChecked;
int rate;
int weight;
@@ -40,36 +41,36 @@ class Package {
shipmentNumber + "-" + receiverNumber + " #" + boxNumber;
double get price => rate.toDouble() * weight;
Package({
this.id,
this.trackingID,
this.userID,
this.userName,
this.fcsID,
this.phoneNumber,
this.shipmentNumber,
this.senderFCSID,
this.senderName,
this.receiverFCSID,
this.receiverName,
this.receiverNumber,
this.receiverAddress,
this.boxNumber,
this.rate,
this.weight,
this.packageType,
this.pickUpID,
this.remark,
this.status,
this.arrivedDate,
this.cargoDesc,
this.market,
this.shipmentHistory,
this.currentStatus,
this.currentStatusDate,
this.photoUrls,
this.desc,
});
Package(
{this.id,
this.trackingID,
this.userID,
this.userName,
this.fcsID,
this.phoneNumber,
this.shipmentNumber,
this.senderFCSID,
this.senderName,
this.receiverFCSID,
this.receiverName,
this.receiverNumber,
this.receiverAddress,
this.boxNumber,
this.rate,
this.weight,
this.packageType,
this.pickUpID,
this.remark,
this.status,
this.arrivedDate,
this.cargoDesc,
this.market,
this.shipmentHistory,
this.currentStatus,
this.currentStatusDate,
this.photoUrls,
this.desc,
this.isChecked =false});
factory Package.fromMap(Map<String, dynamic> map, String docID) {
var _currentStatusDate = (map['current_status_date'] as Timestamp);