diff --git a/src/app/accounts/addbank/addbank.page.html b/src/app/accounts/addbank/addbank.page.html
index abf516f..cf8c722 100644
--- a/src/app/accounts/addbank/addbank.page.html
+++ b/src/app/accounts/addbank/addbank.page.html
@@ -22,9 +22,9 @@
-
+
- {{item.recipient}}
+ {{item.name}} - ({{item.code}})
@@ -35,9 +35,9 @@
-
+
- {{item.recipient}}
+ {{item.name}}
diff --git a/src/app/accounts/addbank/addbank.page.ts b/src/app/accounts/addbank/addbank.page.ts
index 2e748aa..64dda8a 100644
--- a/src/app/accounts/addbank/addbank.page.ts
+++ b/src/app/accounts/addbank/addbank.page.ts
@@ -18,6 +18,8 @@ export class AddbankPage implements OnInit {
private alertController: AlertController) { }
ngOnInit() {
+ this.getcountryBanksData();
+ this. getaccountTypesData();
}
onBack() {
this.navctr.back();
@@ -25,4 +27,40 @@ export class AddbankPage implements OnInit {
contineAdd(){
}
+ //
+
+ countryBanksResult:any;
+ countryBanksData: [];
+ usrData: {
+ action:number, member_id: number, uid: string, sessionid: string, limit:20, page:1
+ };
+ getcountryBanksData(){
+ this.usrData = {action:11200, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid, sessionid: this.sessionDataProviderService.session, limit:20, page:1 }
+ this.wrenchService.countryBanks(this.usrData).subscribe(
+ countryBanksResult => {
+ this.countryBanksResult = countryBanksResult;
+ console.log("countryBanks RETURN->", this.countryBanksResult);
+ this.countryBanksData = this.countryBanksResult.result_list;
+ // debugger;
+ console.log("countryBanks RETURN DATA->", this.countryBanksData);
+ }
+ );
+ }
+
+ accountTypesResult:any;
+ accountTypesData: [];
+
+ getaccountTypesData(){
+ this.usrData = {action:11200, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid, sessionid: this.sessionDataProviderService.session, limit:20, page:1 }
+ this.wrenchService.accountTypes(this.usrData).subscribe(
+ accountTypesResult => {
+ this.accountTypesResult = accountTypesResult;
+ console.log("accountTypes RETURN->", this.accountTypesResult);
+ this.accountTypesData = this.accountTypesResult.result_list;
+ // debugger;
+ console.log("accountTypes RETURN DATA->", this.accountTypesData);
+ }
+ );
+ }
+
}
diff --git a/src/app/pages/home/home.page.ts b/src/app/pages/home/home.page.ts
index 86d104a..bdb44e7 100644
--- a/src/app/pages/home/home.page.ts
+++ b/src/app/pages/home/home.page.ts
@@ -62,7 +62,9 @@ export class HomePage implements OnInit {
walletPresentation(){
this.walletData = this.userWalletService.getWallet();
if( this.walletData?.length > 0 ) {
- this.walletDescription = this.walletData[0].amount*0.01 + ' ' + this.walletData[0].description;
+ var num = new Number(this.walletData[0].amount*0.01);
+ //this.fee_display = num.toFixed(2); //outputs 14
+ this.walletDescription = num.toFixed(2) + ' ' + this.walletData[0].description;
}
}
goPlayground(){
diff --git a/src/app/services/wrench.service.ts b/src/app/services/wrench.service.ts
index 9063bf5..5ebf838 100644
--- a/src/app/services/wrench.service.ts
+++ b/src/app/services/wrench.service.ts
@@ -159,6 +159,13 @@ export class WrenchService {
return this.getPostData("activetaskslist", usrData);
}
+ //
+ accountTypes(reqData){
+ return this.getPostData("accounttypes", reqData);
+ }
+ countryBanks(reqData){
+ return this.getPostData("countrybanks", reqData);
+ }
getMyFiles(usrData){
return this.getPostData("myfiles", usrData);
}