Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
fix_report_download_name
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldevgarg authored Sep 11, 2023
1 parent 17bfeda commit 2af3be7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/mgramseva/lib/providers/reports_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 2af3be7

Please sign in to comment.