update carton form ,info and filter

This commit is contained in:
tzw
2024-10-01 18:15:53 +06:30
parent 02e079c514
commit 41fdc3ef43
13 changed files with 123 additions and 109 deletions

View File

@@ -82,6 +82,9 @@ class _MixCartonEditorState extends State<MixCartonEditor> {
_cartonSizeType = packageCarton;
} else {
_cartonSizeType = customCarton;
_length = widget.carton.length.toDouble();
_width = widget.carton.width.toDouble();
_height = widget.carton.height.toDouble();
}
var s = await context
@@ -269,7 +272,7 @@ class _MixCartonEditorState extends State<MixCartonEditor> {
width: width,
height: height,
cartons: _cartons);
await context.read<CartonModel>().updateCarton(carton);
await context.read<CartonModel>().updateMixCarton(carton);
Navigator.pop(context, true);
} catch (e) {
showMsgDialog(context, "Error", e.toString());