Browse Source

show Warehouse Name

phase2_apinhatky
Đại Võ 1 year ago
parent
commit
c506a58a97
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      lib/custom_model/Supply.dart
  2. +1
    -1
      lib/presentation/screens/resources/sc_resource_helper.dart

+ 4
- 0
lib/custom_model/Supply.dart View File

@@ -6,6 +6,7 @@ class Supply {
String? tbWarehouseName;
String? tbSuppliesName;
int? tbSuppliesId;
String? tbEntityName;
bool? isSelected;

Supply({
@@ -16,6 +17,7 @@ class Supply {
this.tbWarehouseName,
this.tbSuppliesName,
this.tbSuppliesId,
this.tbEntityName,
this.isSelected,
});

@@ -25,6 +27,7 @@ class Supply {
unit = json['unit'];
tbWarehouseId = json['tbWarehouseId'];
tbWarehouseName = json['tbWarehouseName'];
tbEntityName = json['tbEntityName'];
tbSuppliesName = json['tbSuppliesName'];
tbSuppliesId = json['tbSuppliesId'];
isSelected = false;
@@ -37,6 +40,7 @@ class Supply {
data['unit'] = this.unit;
data['tbWarehouseId'] = this.tbWarehouseId;
data['tbWarehouseName'] = this.tbWarehouseName;
data['tbEntityName'] = this.tbEntityName;
data['tbSuppliesName'] = this.tbSuppliesName;
data['tbSuppliesId'] = this.tbSuppliesId;
return data;

+ 1
- 1
lib/presentation/screens/resources/sc_resource_helper.dart View File

@@ -169,7 +169,7 @@ class ItemInfinityWidget extends StatelessWidget {
title: Row(
children: [Expanded(child: Text(item.tbSuppliesName.toString())), Text("${item.quantity?.formatNumtoStringDecimal()} ${item.unit}")],
),
subtitle: Text(item.tbWarehouseName.toString()),
subtitle: Text(item.tbEntityName.toString()),
value: item,
groupValue: item.isSelected == false ? null : item,
onChanged: (Supply? value) {

Loading…
Cancel
Save