update carton info
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user