From ee36baaad552a0e7509ab48983fb6e624f97c247 Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Sun, 2 Nov 2025 15:10:59 +0300 Subject: [PATCH] transaction date added in asset detail card. --- .../asset_inventory_module/models/asset_inventory_model.dart | 5 +++++ .../asset_inventory_module/pages/asset_detail_card_view.dart | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/lib/modules/asset_inventory_module/models/asset_inventory_model.dart b/lib/modules/asset_inventory_module/models/asset_inventory_model.dart index a07d980a..0b6796cb 100644 --- a/lib/modules/asset_inventory_module/models/asset_inventory_model.dart +++ b/lib/modules/asset_inventory_module/models/asset_inventory_model.dart @@ -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 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, diff --git a/lib/modules/asset_inventory_module/pages/asset_detail_card_view.dart b/lib/modules/asset_inventory_module/pages/asset_detail_card_view.dart index 109e9b03..a7f92d55 100644 --- a/lib/modules/asset_inventory_module/pages/asset_detail_card_view.dart +++ b/lib/modules/asset_inventory_module/pages/asset_detail_card_view.dart @@ -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),