transaction date added in asset detail card.

design_3.0_asset_inventory_module
Sikander Saleem 4 weeks ago
parent 33251cfcff
commit ee36baaad5

@ -57,6 +57,7 @@ class AssetInventoryResponse {
class AssetInventoryModel {
num? id;
num? assetId;
String? transactionDate;
String? assetNumber;
String? serialNo;
String? assetName;
@ -111,6 +112,7 @@ class AssetInventoryModel {
this.id,
this.sessionId,
this.assetId,
this.transactionDate,
this.assetNumber,
this.assetNameId,
this.serialNo,
@ -163,6 +165,7 @@ class AssetInventoryModel {
AssetInventoryModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
assetId = json['assetId'];
transactionDate = json['transactionDate'];
assetNumber = json['assetNumber'];
assetNameId = json['assetNameId'];
serialNo = json['serialNo'];
@ -210,6 +213,7 @@ class AssetInventoryModel {
'isNotRegistered': isNotRegistered,
'sessionId': sessionId,
'assetImportId': assetImportId,
'transactionDate': transactionDate,
'assetId': assetId,
'siteId': siteId,
'buildingId': buildingId,
@ -237,6 +241,7 @@ class AssetInventoryModel {
return AssetInventoryModel(
id: id ?? other.id,
assetId: assetId ?? other.assetId,
transactionDate: transactionDate ?? other.transactionDate,
assetNumber: assetNumber ?? other.assetNumber,
serialNo: serialNo ?? other.serialNo,
assetName: assetName ?? other.assetName,

@ -43,6 +43,10 @@ class AssetDetailCardView extends StatelessWidget {
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Transection Date: ${assetInventoryModel.transactionDate?.toServiceRequestDetailsFormat ?? '-'}',
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
),
Text(
'${context.translation.assetNumber}: ${assetInventoryModel.assetNumber ?? '-'}',
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),

Loading…
Cancel
Save