update processing,customer and staff

This commit is contained in:
tzw
2021-10-11 17:09:47 +06:30
parent bfa6b8c2ed
commit 8df11b70a0
22 changed files with 158 additions and 59 deletions

View File

@@ -160,7 +160,8 @@ class _ProcesingEditorState extends State<ProcesingEditor> {
consignee: this.consignee,
)),
);
_addPackage(_package!);
_addPackage(_package);
// _savePackage(_package);
}),
],
@@ -244,14 +245,14 @@ class _ProcesingEditorState extends State<ProcesingEditor> {
}).toList();
}
_addPackage(Package package) {
_addPackage(Package? package) {
if (package == null) return;
this.packages.add(package);
setState(() {});
}
_savePackage(Package package) {
_savePackage(Package? package) {
if (package == null) return;
setState(() {});
}