This repository has been archived by the owner on Nov 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'PFM-4079' into develop
# Conflicts: # frontend/mgramseva/lib/utils/role_actions.dart
- Loading branch information
Showing
24 changed files
with
1,103 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import '../../utils/models.dart'; | ||
|
||
class BillsTableData{ | ||
List<TableHeader> tableHeaders; | ||
List<TableDataRow> tabledata; | ||
|
||
BillsTableData(this.tableHeaders, this.tabledata); | ||
} |
37 changes: 37 additions & 0 deletions
37
frontend/mgramseva/lib/model/reports/bill_report_data.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import 'package:json_annotation/json_annotation.dart'; | ||
|
||
part 'bill_report_data.g.dart'; | ||
|
||
@JsonSerializable() | ||
class BillReportData { | ||
@JsonKey(name: "tenantName") | ||
String? tenantName; | ||
@JsonKey(name: "consumerName") | ||
String? consumerName; | ||
@JsonKey(name: "connectionNo") | ||
String? connectionNo; | ||
@JsonKey(name: "oldConnectionNo") | ||
String? oldConnectionNo; | ||
@JsonKey(name: "consumerCreatedOnDate") | ||
String? consumerCreatedOnDate; | ||
@JsonKey(name: "penalty") | ||
double? penalty; | ||
@JsonKey(name: "advance") | ||
double? advance; | ||
@JsonKey(name: "demandAmount") | ||
double? demandAmount; | ||
@JsonKey(name: "userId") | ||
String? userId; | ||
|
||
@override | ||
String toString() { | ||
return 'BillReportData{tenantName: $tenantName, consumerName: $consumerName, connectionNo: $connectionNo, oldConnectionNo: $oldConnectionNo, consumerCreatedOnDate: $consumerCreatedOnDate, advance: $advance, penalty: $penalty, demandAmount: $demandAmount, userId: $userId}'; | ||
} | ||
|
||
BillReportData(); | ||
|
||
factory BillReportData.fromJson(Map<String, dynamic> json) => | ||
_$BillReportDataFromJson(json); | ||
|
||
Map<String, dynamic> toJson(List list) => _$BillReportDataToJson(this); | ||
} |
32 changes: 32 additions & 0 deletions
32
frontend/mgramseva/lib/model/reports/bill_report_data.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
frontend/mgramseva/lib/model/reports/collection_report_data.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
class CollectionReportData { | ||
String? tenantName; | ||
String? consumerName; | ||
String? connectionNo; | ||
String? oldConnectionNo; | ||
String? userId; | ||
String? paymentMode; | ||
List<double>? paymentAmount; | ||
|
||
CollectionReportData( | ||
{this.tenantName, | ||
this.consumerName, | ||
this.connectionNo, | ||
this.oldConnectionNo, | ||
this.userId, | ||
this.paymentMode, | ||
this.paymentAmount}); | ||
|
||
CollectionReportData.fromJson(Map<String, dynamic> json) { | ||
tenantName = json['tenantName']; | ||
consumerName = json['consumerName']; | ||
connectionNo = json['connectionNo']; | ||
oldConnectionNo = json['oldConnectionNo']; | ||
userId = json['userId']; | ||
paymentMode = json['paymentMode']; | ||
paymentAmount = json['paymentAmount'].cast<double>(); | ||
} | ||
|
||
Map<String, dynamic> toJson() { | ||
final Map<String, dynamic> data = new Map<String, dynamic>(); | ||
data['tenantName'] = this.tenantName; | ||
data['consumerName'] = this.consumerName; | ||
data['connectionNo'] = this.connectionNo; | ||
data['oldConnectionNo'] = this.oldConnectionNo; | ||
data['userId'] = this.userId; | ||
data['paymentMode'] = this.paymentMode; | ||
data['paymentAmount'] = this.paymentAmount; | ||
return data; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.