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

Commit

Permalink
ISTE-361
Browse files Browse the repository at this point in the history
  • Loading branch information
palak-egov authored Sep 19, 2024
1 parent cba66a5 commit 7a93912
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions frontend/mgramseva/lib/screeens/reports/monthly_ledger_report.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,24 @@ class _MonthlyLedgerReportState extends State<MonthlyLedgerReport>
SizedBox(
width: 10,
),
TextButton.icon(
onPressed: () {
if (reportProvider.selectedBillPeriod == null) {
Notifiers.getToastMessage(
context,
'${ApplicationLocalizations.of(context).translate(i18.common.SELECT_BILLING_CYCLE)}',
'ERROR');
} else {
reportProvider.getMonthlyLedgerReport(
download: true);
}
},
icon: Icon(Icons.download_sharp),
label: Text(ApplicationLocalizations.of(context)
.translate(i18.common.CORE_DOWNLOAD))),
Opacity(
opacity: 0,
child: TextButton.icon(
onPressed: () {
// if (reportProvider.selectedBillPeriod == null) {
// Notifiers.getToastMessage(
// context,
// '${ApplicationLocalizations.of(context).translate(i18.common.SELECT_BILLING_CYCLE)}',
// 'ERROR');
// } else {
// reportProvider.getMonthlyLedgerReport(
// download: true);
// }
},
icon: Icon(Icons.download_sharp),
label: Text(ApplicationLocalizations.of(context)
.translate(i18.common.CORE_DOWNLOAD))),
),
],
),
],
Expand Down

0 comments on commit 7a93912

Please sign in to comment.