added account balance in statement. Fixed bank logo in statement pdf.
removed unwanted log generations
This commit is contained in:
@@ -4,8 +4,18 @@ class Transaction {
|
||||
final String? date;
|
||||
final String? amount;
|
||||
final String? type;
|
||||
final String? balance;
|
||||
final String? balanceType;
|
||||
|
||||
Transaction(
|
||||
{this.id,
|
||||
this.name,
|
||||
this.date,
|
||||
this.amount,
|
||||
this.type,
|
||||
this.balance,
|
||||
this.balanceType});
|
||||
|
||||
Transaction({this.id, this.name, this.date, this.amount, this.type});
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
'id': id,
|
||||
@@ -13,16 +23,19 @@ class Transaction {
|
||||
'date': date,
|
||||
'amount': amount,
|
||||
'type': type,
|
||||
'balance': balance,
|
||||
'balanceType': balanceType
|
||||
};
|
||||
}
|
||||
|
||||
factory Transaction.fromJson(Map<String, dynamic> json) {
|
||||
return Transaction(
|
||||
id: json['id'] as String?,
|
||||
name: json['name'] as String?,
|
||||
date: json['date'] as String?,
|
||||
amount: json['amount'] as String?,
|
||||
type: json['type'] as String?,
|
||||
);
|
||||
id: json['id'] as String?,
|
||||
name: json['name'] as String?,
|
||||
date: json['date'] as String?,
|
||||
amount: json['amount'] as String?,
|
||||
type: json['type'] as String?,
|
||||
balance: json['balance'] as String?,
|
||||
balanceType: json['balanceType'] as String?);
|
||||
}
|
||||
}
|
||||
|
@@ -25,8 +25,6 @@ class TransactionRepositoryImpl implements TransactionRepository {
|
||||
queryParameters['toDate'] = DateFormat('ddMMyyyy').format(toDate);
|
||||
}
|
||||
|
||||
log('query params below');
|
||||
log(queryParameters.toString());
|
||||
final resp = await _dio.get(
|
||||
'/api/transactions/account/$accountNo',
|
||||
queryParameters: queryParameters.isNotEmpty ? queryParameters : null,
|
||||
|
Reference in New Issue
Block a user