From bfe5fed27a036401700b26928fef6c339983fa88 Mon Sep 17 00:00:00 2001 From: venbaSriram Date: Tue, 1 Jan 2019 21:06:19 +0530 Subject: [PATCH] asset amtinwds incomplete : ps --- .../assets-info/assets-info.component.html | 172 ++++++------------ .../assets-info/assets-info.component.ts | 27 ++- .../banking-details.component.ts | 2 +- 3 files changed, 75 insertions(+), 126 deletions(-) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.html index 40e14ff6c..d2346740d 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.html @@ -6,7 +6,6 @@
-
@@ -35,29 +34,29 @@
- + +
-
-
+ {{ prop.name }} + - +
-
- + +
-
@@ -67,14 +66,12 @@
-
- + +
-
-
@@ -82,11 +79,10 @@
-
- + +
-
@@ -96,85 +92,69 @@
-
+
-
- - + + - - + + {{ freqn.name }} - + + -
+
-
- +
- - - + -
-
+
- {{ ins_type.name }} - - - - - -
-
-
@@ -192,31 +172,26 @@ {{data.viewValue}} - -
-
- - - + +
- + + {{"₹"}} {{appxMarketAmtInwords[i]}} Only @@ -228,35 +203,31 @@
- + Yes No - - + - + + {{"₹"}} {{emiAmtInwords[i]}} Only - - + - + - - + - - +
@@ -314,7 +285,6 @@
-
@@ -329,7 +299,6 @@
-
@@ -345,7 +314,6 @@
-
@@ -355,7 +323,6 @@
-
-
@@ -383,21 +349,16 @@
-
-
- - {{ freqn.name }} @@ -406,69 +367,57 @@ -
+
-
- +
- - - + - +
-
- -
- + {{ ins_type.name }} - - - + - - - + - +
- -
+
- +
@@ -483,12 +432,10 @@ - {{owner.applicant_name}} - - + @@ -503,7 +450,7 @@ - + @@ -522,14 +469,13 @@
-
-
- + + {{"₹"}} {{OtherAppxMarketAmtInwords[i]}} Only @@ -554,35 +500,31 @@
- + Yes No - - + - + + {{"₹"}} {{OtherEmiAmtInwords[i]}} Only - - + - - + - - + - - +
@@ -592,7 +534,7 @@
- + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.ts index c2cc2647a..db14a7934 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.ts @@ -43,6 +43,10 @@ export class AssetsInfoComponent implements OnInit { public m_any_asset_loan_type = [{'value': "yes",'viewValue': "Yes"}, {'value': "no",'viewValue': "No"}, {'value': "nan",'viewValue': "NA"}] + appxMarketAmtInwords : any = []; + OtherAppxMarketAmtInwords : any = []; + emiAmtInwords : any = []; + OtherEmiAmtInwords : any = []; // public m_assets_type = [ // { // 'id': "1", @@ -960,14 +964,17 @@ public m_investmentType = []; } - // { - // 'main_raw_materials': 'sdkjfal', - // 'supplier_details' ; [ - // { - // 'supplier_name':'ldskjfalks', - // 'payment_mode': '1', - // 'payment_mode_value':'' - // } - // ] - // } +/** Amount InWords */ +inWords(e,i,flag){ + switch(flag){ + case 1 : + this.appxMarketAmtInwords[i] = this.pdTrigerService.convertNumberToWords(e.target.value); + break; + case 2 : + this.OtherAppxMarketAmtInwords[i] = this.pdTrigerService.convertNumberToWords(e.target.value); + break; + default: + break; + } +} } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.ts index 186ecba17..6eba35463 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.ts @@ -105,7 +105,7 @@ export class BankingDetailsComponent implements OnInit { } else { result.forEach((datas,index) => { this.amtInwords[index] = this._pd.convertNumberToWords(datas.limit); - this. selectedBorrower(datas.applicant_name,index); + this.selectedBorrower(datas.applicant_name,index); this.selectedAccTypeChanges(datas.account_type,index) // this.emiAmtInwords[index] = this._pd.convertNumberToWords(val.emi);