update carton info

This commit is contained in:
tzw
2024-02-09 13:35:32 +06:30
parent 62c0da8a96
commit e485e5792e
13 changed files with 466 additions and 352 deletions

View File

@@ -49,8 +49,10 @@ class _InvoiceInfoState extends State<InvoiceInfo> {
List<Carton> cartons = [];
for (var c in _invoice?.cartons ?? []) {
var _carton = await cartonModel.getCarton(c.id);
_carton.isChecked = true;
cartons.add(_carton);
if (_carton != null) {
_carton.isChecked = true;
cartons.add(_carton);
}
}
setState(() {
_invoice!.cartons = cartons;