-
+
- Working Capital Facilities availed
+ {{lender_short_name == 'CFPL' ? 'Total Banking Facilities' :'Working Capital Facilities'}} availed
@@ -840,15 +867,17 @@
-
- Other Reason For Working Capital Facilities Availed Required
+ Other Reason For{{lender_short_name == 'CFPL' ? 'Total Banking Facilities' :'Working Capital Facilities'}} Availed Required
- Reason For Working Capital Facilities Availed Required
+ Reason For {{lender_short_name == 'CFPL' ? 'Total Banking Facilities' :'Working Capital Facilities'}} Availed Required
@@ -889,7 +918,36 @@
formControlName="od_limit">
OD Limit Required
-
+
+
+ Name of the Lender Required
+
+
+
+ Loan Amount Required
+
+
+
+ Loan Type Required
+
+
+
+ Loan Tenor Required
+
+
+
+ Loan start date Required
+
+
+
+ Monthly obligation-Interest/EMI Required
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts
index c3635ae29..36efeac6d 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts
@@ -12,7 +12,7 @@ import {
FormArray, FormControl, AbstractControl,
} from '@angular/forms';
-import { NotifierService } from 'angular-notifier';
+import { NotifierService } from 'angular-notifier';
import {
MatDialog,
@@ -101,6 +101,7 @@ export class FinancialInfoComponent implements OnInit {
},
]
fk_pd_type: any;
+ financial: string;
constructor(notifier: NotifierService,
private fb: FormBuilder,
@@ -119,6 +120,10 @@ export class FinancialInfoComponent implements OnInit {
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
this.lender_short_name = this.pd_all_details.pdmaster_details.lender_short_name;
+ if(this.lender_short_name=='CFPL')
+ {
+ this.financial='no';
+ }
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
@@ -154,17 +159,38 @@ export class FinancialInfoComponent implements OnInit {
ngOnInit() {
+
this.initstockForm();
if(this.lender_short_name == "IIB"){
this.financialForm.addControl('tot_business_FY',new FormControl())
this.financialForm.addControl('orders_hand_FY',new FormControl())
this.financialForm.addControl('remarks_tot_business_FY',new FormControl())
}
+ if(this.lender_short_name == 'CFPL')
+ {
+ /* for check box view based on cfpl */
+ this.av.push({id:8,name:'Name of Lender'});
+ this.av.push({id:9,name:'Loan amount'});
+ this.av.push({id:10,name:'Loan Type'});
+ this.av.push({id:11,name:'Loan Tenor'});
+ this.av.push({id:12,name:'Loan start date'});
+ this.av.push({id:13,name:'Monthly obligation-Interest/EMI'});
+ /*--------------------------*/
+
+ /*for financial data */
+ this.financialForm.addControl('turnover_lastcomplete_year',new FormControl())
+ this.financialForm.addControl('ytd_turnover',new FormControl())
+ this.financialForm.addControl('deptor_collection_period',new FormControl())
+ this.financialForm.addControl('inventory_holding_period',new FormControl())
+ this.financialForm.addControl('creditor_payment_period',new FormControl())
+ /*--------------------------*/
+ }
if(this.customer_segment_abbr == "SE-DI"){
this.financialForm.addControl('kuccha_records_shown',new FormControl())
this.financialForm.addControl('customer_declared_turnover',new FormControl())
this.financialForm.addControl('kuccha_bill_allowed',new FormControl())
}
+
if(this.lender_short_name == 'CHFPL'){
this.financialForm.addControl('is_turnover_validated',new FormControl('yes',Validators.compose([Validators.required])))
this.financialForm.addControl('how_turnover_validated',new FormControl('',Validators.compose([Validators.required])))
@@ -255,6 +281,31 @@ export class FinancialInfoComponent implements OnInit {
this.financialForm.addControl('other_reason_for_working_capital_facilities_availed', new FormControl(''));
this.financialForm.addControl('reason_for_working_capital_facilities_availed', new FormControl(''));
}
+ if (val.exist_status == 1 && val.id == 8) {
+ this.financialForm.addControl('lender_name', new FormControl(''));
+
+ }
+ if (val.exist_status == 1 && val.id == 9) {
+ this.financialForm.addControl('loan_amount', new FormControl(''));
+
+ }
+ if (val.exist_status == 1 && val.id == 10) {
+ this.financialForm.addControl('loan_type', new FormControl(''));
+
+ }
+ if (val.exist_status == 1 && val.id == 11) {
+ this.financialForm.addControl('loan_tenor', new FormControl(''));
+
+ }
+ if (val.exist_status == 1 && val.id == 12) {
+ this.financialForm.addControl('loan_start_date', new FormControl(''));
+
+ }
+ if (val.exist_status == 1 && val.id == 13) {
+ this.financialForm.addControl('monthly_emi', new FormControl(''));
+
+ }
+
});
@@ -498,6 +549,43 @@ export class FinancialInfoComponent implements OnInit {
this.financialForm.addControl('other_reason_for_working_capital_facilities_availed', new FormControl(''));
this.financialForm.addControl('reason_for_working_capital_facilities_availed', new FormControl(''));
}
+ if (event.value.exist_status == true && event.value.id == 8) {
+ this.financialForm.removeControl('lender_name');
+ }
+ else if (event.value.exist_status == false && event.value.id == 8) {
+ this.financialForm.addControl('lender_name', new FormControl(''));
+ }
+ if (event.value.exist_status == true && event.value.id == 9) {
+ this.financialForm.removeControl('loan_amount');
+ }
+ else if (event.value.exist_status == false && event.value.id == 9) {
+ this.financialForm.addControl('loan_amount', new FormControl(''));
+ }
+ if (event.value.exist_status == true && event.value.id == 10) {
+ this.financialForm.removeControl('loan_type');
+ }
+ else if (event.value.exist_status == false && event.value.id == 10) {
+ this.financialForm.addControl('loan_type', new FormControl(''));
+ }
+ if (event.value.exist_status == true && event.value.id == 11) {
+ this.financialForm.removeControl('loan_tenor');
+ }
+ else if (event.value.exist_status == false && event.value.id == 11) {
+ this.financialForm.addControl('loan_tenor', new FormControl(''));
+ }
+ if (event.value.exist_status == true && event.value.id == 12) {
+ this.financialForm.removeControl('loan_start_date');
+ }
+ else if (event.value.exist_status == false && event.value.id == 12) {
+ this.financialForm.addControl('loan_start_date', new FormControl(''));
+ }
+ if (event.value.exist_status == true && event.value.id == 13) {
+ this.financialForm.removeControl('monthly_emi');
+ }
+ else if (event.value.exist_status == false && event.value.id == 13) {
+ this.financialForm.addControl('monthly_emi', new FormControl(''));
+ }
+
// if(event.value.exist_status==true && event.value.id==1){
// let othersControl =
this.businessForm.controls['others_activity_details'];
@@ -2030,9 +2118,25 @@ export class FinancialInfoComponent implements OnInit {
if(records.od_limit) delete records.od_limit;
if(records.other_reason_for_working_capital_facilities_availed) delete records.other_reason_for_working_capital_facilities_availed ;
if(records.reason_for_working_capital_facilities_availed) delete records.reason_for_working_capital_facilities_availed ;
- }
-
+ if(this.lender_short_name=='CFPL')
+ {
+ if(records.lender_name) delete records.lender_name ;
+ if(records.loan_amount) delete records.loan_amount;
+ if(records.loan_type) delete records.loan_type;
+ if(records.loan_tenor) delete records.loan_tenor;
+ if(records.loan_start_date) delete records.loan_start_date;
+ if(records.monthly_emi) delete records.monthly_emi;
+ /* for remove control */
+ if(records.turnover_lastcomplete_year) delete records.turnover_lastcomplete_year;
+ if(records.ytd_turnover) delete records.ytd_turnover;
+ if(records.deptor_collection_period) delete records.deptor_collection_period;
+ if(records.inventory_holding_period) delete records.inventory_holding_period;
+ if(records.creditor_payment_period) delete records.creditor_payment_period;
+ /*-----------------------*/
+ }
+ }
+
this._pd.saveForm(records).subscribe(data => {
if(data.status == 200) {
this.notifier.notify('success', 'Saved Successfully.');
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html
index 7ca6d59c1..292719398 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html
@@ -13,7 +13,7 @@
-
+
@@ -317,6 +317,163 @@
+
+
+ Anchor Details Section
+
+
+
+
+
+ {{"₹"}} {{ loanDetailsForm.controls['facility_amount'].value | numberToWords }} Only
+
+
+
+
+
+
+
+ Applicant's association vintage with the Anchor
+
+
+
+
+
+
+
+
+
+
+
+ {{"₹"}} {{ loanDetailsForm.controls['monthly_business_anchor'].value | numberToWords }} Only
+
+
+
+
+
+ {{ loanDetailsForm.controls['business_concentration'].value }} %
+
+
+ Credit period with the Anchor (Days)
+
+
+
+
+
+
+
+