From df06a77b6c4291ce43e1555e9cba9183bea6cae1 Mon Sep 17 00:00:00 2001 From: suvaysov Date: Tue, 15 Nov 2022 16:44:33 +0600 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=BD=D0=B2=D0=B5=D0=BD=D1=82=D0=B0?= =?UTF-8?q?=D1=80=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20++?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../widget/good_inventarization_list_item.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/views/inventarization/widget/good_inventarization_list_item.dart b/lib/views/inventarization/widget/good_inventarization_list_item.dart index d9067b3..24af91c 100644 --- a/lib/views/inventarization/widget/good_inventarization_list_item.dart +++ b/lib/views/inventarization/widget/good_inventarization_list_item.dart @@ -25,7 +25,6 @@ class GoodInventarizationListItem extends StatefulWidget { this.categoryName, this.isOdd = true, this.transactionId, - }) : super(key: key); final int inventoryItemId; final int inventoryId; @@ -126,11 +125,14 @@ class _GoodInventarizationListItemState ); if (response.confirmed) { if (isNumeric(response.responseCount)) { - bool result = await _service.setCountToItem(widget.inventoryId, widget.inventoryItemId, double.parse(response.responseCount!)); - if(result) { + bool result = await _service.setCountToItem(widget.inventoryId, + widget.inventoryItemId, double.parse(response.responseCount!)); + if (result) { widget.refresh(); } else { - _dialogService.showDialog(description: 'Что то пошло не так!'); + _dialogService.showDialog( + description: + 'Товар не найден или не доступен для инвентаризации'); } } else { _dialogService.showDialog(description: 'Не верный формат');