From 2af3be70fe50175d53e64bbe4a4efd8d40a1366b Mon Sep 17 00:00:00 2001 From: Rahul Dev Garg <34365102+rahuldevgarg@users.noreply.github.com> Date: Mon, 11 Sep 2023 14:16:26 +0530 Subject: [PATCH] fix_report_download_name --- frontend/mgramseva/lib/providers/reports_provider.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/mgramseva/lib/providers/reports_provider.dart b/frontend/mgramseva/lib/providers/reports_provider.dart index 1d0a5bacc..498aefdab 100644 --- a/frontend/mgramseva/lib/providers/reports_provider.dart +++ b/frontend/mgramseva/lib/providers/reports_provider.dart @@ -283,7 +283,7 @@ class ReportsProvider with ChangeNotifier { .toList() ?? [], title: - 'DemandReport_${commonProvider.userDetails?.selectedtenant?.code?.substring(2)}_$selectedBillPeriod', + 'DemandReport_${commonProvider.userDetails?.selectedtenant?.code?.substring(3)}_${selectedBillPeriod.toString().replaceAll('/', '_')}', optionalData: [ 'Demand Report', '$selectedBillPeriod', @@ -348,7 +348,7 @@ class ReportsProvider with ChangeNotifier { .toList() ?? [], title: - 'CollectionReport_${commonProvider.userDetails?.selectedtenant?.code?.substring(3)}_$selectedBillPeriod', + 'CollectionReport_${commonProvider.userDetails?.selectedtenant?.code?.substring(3)}_${selectedBillPeriod.toString().replaceAll('/', '_')}', optionalData: [ 'Collection Report', '$selectedBillPeriod',