add packages
This commit is contained in:
@@ -21,4 +21,6 @@ class Invoice {
|
||||
this.status,
|
||||
this.paymentAttachment,
|
||||
this.packages});
|
||||
|
||||
double get getAmount => packages.fold(0, (p, e) => (e.rate * e.weight) + p);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user