Инвентаризация ++
parent
e461fb5662
commit
df06a77b6c
|
|
@ -25,7 +25,6 @@ class GoodInventarizationListItem extends StatefulWidget {
|
||||||
this.categoryName,
|
this.categoryName,
|
||||||
this.isOdd = true,
|
this.isOdd = true,
|
||||||
this.transactionId,
|
this.transactionId,
|
||||||
|
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
final int inventoryItemId;
|
final int inventoryItemId;
|
||||||
final int inventoryId;
|
final int inventoryId;
|
||||||
|
|
@ -126,11 +125,14 @@ class _GoodInventarizationListItemState
|
||||||
);
|
);
|
||||||
if (response.confirmed) {
|
if (response.confirmed) {
|
||||||
if (isNumeric(response.responseCount)) {
|
if (isNumeric(response.responseCount)) {
|
||||||
bool result = await _service.setCountToItem(widget.inventoryId, widget.inventoryItemId, double.parse(response.responseCount!));
|
bool result = await _service.setCountToItem(widget.inventoryId,
|
||||||
if(result) {
|
widget.inventoryItemId, double.parse(response.responseCount!));
|
||||||
|
if (result) {
|
||||||
widget.refresh();
|
widget.refresh();
|
||||||
} else {
|
} else {
|
||||||
_dialogService.showDialog(description: 'Что то пошло не так!');
|
_dialogService.showDialog(
|
||||||
|
description:
|
||||||
|
'Товар не найден или не доступен для инвентаризации');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_dialogService.showDialog(description: 'Не верный формат');
|
_dialogService.showDialog(description: 'Не верный формат');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue