fix number formatting

This commit is contained in:
Sai Naw Wun
2020-10-22 05:27:03 +06:30
parent e5540c5491
commit bbacbd151a
5 changed files with 40 additions and 23 deletions

View File

@@ -1,5 +1,3 @@
import 'dart:convert';
class CargoType {
String id;
String name;

View File

@@ -38,7 +38,7 @@ class Invoice {
CargoType existing = cargoTypes.firstWhere((wc) => wc.id == tc.id);
existing.weight += tc.weight;
} else {
cargoTypes.add(tc);
cargoTypes.add(tc.clone());
}
actualWeight += tc.weight;
});