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

Commit

Permalink
Merge pull request #555 from egovernments/PFM-4518-frontend
Browse files Browse the repository at this point in the history
added api contract changes
  • Loading branch information
rahuldevgarg authored Sep 8, 2023
2 parents dbaa65b + daf70d7 commit 3f979c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class CollectionReportData {
String? oldConnectionNo;
String? userId;
String? paymentMode;
List<double>? paymentAmount;
String? paymentAmount;

CollectionReportData(
{this.tenantName,
Expand All @@ -23,7 +23,7 @@ class CollectionReportData {
oldConnectionNo = json['oldConnectionNo'];
userId = json['userId'];
paymentMode = json['paymentMode'];
paymentAmount = json['paymentAmount'].cast<double>();
paymentAmount = json['paymentAmount'];
}

Map<String, dynamic> toJson() {
Expand Down
2 changes: 1 addition & 1 deletion frontend/mgramseva/lib/providers/reports_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class ReportsProvider with ChangeNotifier {
TableData('${data.oldConnectionNo ?? '-'}'),
TableData('${name?? '-'}'),
TableData('${data.paymentMode ?? '-'}'),
TableData('${data.paymentAmount==null?null:data.paymentAmount!.isNotEmpty?data.paymentAmount?.first:null ?? '0'}'),
TableData('${data.paymentAmount ?? '0'}'),
]);
}
void callNotifier() {
Expand Down

0 comments on commit 3f979c7

Please sign in to comment.