Prod Catagory changes done

This commit is contained in:
sriram-at-840620226347 2020-01-21 18:16:41 +05:30
parent c92b719b3c
commit 44fa453f45
23 changed files with 115 additions and 79 deletions

View File

@ -190,6 +190,14 @@ export class AddPdComponent implements OnInit, OnDestroy {
this._PDtriggerForm.controls['fk_product_id'].setValue("3")
this._PDtriggerForm.controls['fk_pd_type'].setValue("1");
this.getSubproductList("3")
}
else if(this.lenderShortName == 'HHFL'){
this.getSubproductList("1")
this._PDtriggerForm.controls['fk_product_id'].setValue('1');
this._PDtriggerForm.controls['fk_subproduct_id'].setValue('1');
this._PDtriggerForm.controls['fk_customer_segment'].setValue('5');
this._PDtriggerForm.controls['fk_pd_type'].setValue('1');
this._PDtriggerForm.controls['loan_amount'].setValue(0);
}
// console.log("len",lender)
}
@ -252,8 +260,9 @@ export class AddPdComponent implements OnInit, OnDestroy {
// console.log(productID)
let productabbr : any;
// console.log('productID',productID);
if(productID !== undefined && productID !== null && productID !== '') {
if(productID !== undefined && productID !== null && productID !== '' && this.productList.length > 0) {
this.subProductList = this.productList.filter(item => item.product_id == productID);
console.log('sub products',this.subProductList,this.productList,productID)
this.subProductList = this.subProductList[0].subproducts;
this.subProductList = this.subProductList.filter(item => item.is_others == 0);
productabbr = this.productAllList.filter(item => item.product_id == productID)[0].product_abbr;

View File

@ -73,6 +73,7 @@ export class AddressComponent implements OnInit {
pincodeDataList: any = [];
product_abbr: any;
split_customer_abbr: any;
prod_catagory: any;
/**Constructor of the class */
constructor(private el: ElementRef, notifier: NotifierService,
@ -95,7 +96,8 @@ export class AddressComponent implements OnInit {
this.lender_short_name=this.pd_all_details.pdmaster_details.lender_short_name
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
console.log(this.product_abbr);
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
console.log('prod catagory',this.prod_catagory);
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this.split_customer_abbr = this.customer_segment_abbr.split('-')
if(this.split_customer_abbr.length > 0){
@ -194,7 +196,7 @@ export class AddressComponent implements OnInit {
}
}
if(this.lender_short_name != 'CLIX' && this.product_abbr != 'BL') {
if(this.lender_short_name != 'CLIX' && this.prod_catagory != 'BL') {
this.addressForm.controls.estimated_area.setValue(datas.estimated_area ? datas.estimated_area : '')
this.addressForm.controls.uom.setValue(datas.uom);
@ -237,7 +239,7 @@ export class AddressComponent implements OnInit {
// was_the_company_name_board_sighted:['', Validators.compose([Validators.required])],
address_form_remark: ['']
});
if(this.lender_short_name == 'CLIX' || this.product_abbr == 'BL'){
if(this.lender_short_name == 'CLIX' || this.prod_catagory == 'BL'){
this.addressForm.removeControl('estimated_area');
this.addressForm.removeControl('uom');
}
@ -552,7 +554,7 @@ export class AddressComponent implements OnInit {
records.addresses[0].locality_mixuse = this.addressForm.controls.locality_mixuse.value;
records.addresses[0].pd_location = this.addressForm.controls.pd_location.value;
records.addresses[0].comment_locality = this.addressForm.controls.comment_locality.value;
if(this.lender_short_name != 'CLIX' && this.product_abbr != 'BL') {
if(this.lender_short_name != 'CLIX' && this.prod_catagory != 'BL') {
records.addresses[0].estimated_area = this.addressForm.controls.estimated_area.value
records.addresses[0].uom = this.addressForm.controls.uom.value;
if (this.addressForm.controls.uom.value == 1) {
@ -577,7 +579,7 @@ export class AddressComponent implements OnInit {
records.alternative_addresses[0].locality_mixuse = this.addressForm.controls.locality_mixuse.value;
records.alternative_addresses[0].pd_location = this.addressForm.controls.pd_location.value;
records.alternative_addresses[0].comment_locality = this.addressForm.controls.comment_locality.value;
if(this.lender_short_name != 'CLIX' && this.product_abbr != 'BL') {
if(this.lender_short_name != 'CLIX' && this.prod_catagory != 'BL') {
records.alternative_addresses[0].estimated_area = this.addressForm.controls.estimated_area.value
records.alternative_addresses[0].uom = this.addressForm.controls.uom.value;
if (this.addressForm.controls.uom.value == 1) {
@ -758,7 +760,7 @@ export class AddressComponent implements OnInit {
this.addressForm.controls.locality_others.setValue(datas.locality_others);
}
if(this.lender_short_name != 'CLIX' && this.product_abbr != 'BL'){
if(this.lender_short_name != 'CLIX' && this.prod_catagory != 'BL'){
this.addressForm.controls.estimated_area.setValue(datas.estimated_area ? datas.estimated_area : '')
this.addressForm.controls.uom.setValue(datas.uom)
this.setOthers(datas.uom, '', 5);
@ -831,7 +833,7 @@ export class AddressComponent implements OnInit {
this.addressForm.controls.locality_others.setValue(datas.locality_others);
}
if(this.lender_short_name != 'CLIX' && this.product_abbr != 'BL'){
if(this.lender_short_name != 'CLIX' && this.prod_catagory != 'BL'){
this.addressForm.controls.estimated_area.setValue(datas.estimated_area);
this.addressForm.controls.uom.setValue(datas.uom);
this.setOthers(datas.uom, '', 5);

View File

@ -80,7 +80,7 @@
</mat-form-field>
</div>
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || product_abbr == 'LFMP'">
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || prod_catagory == 'LFMP'">
<mat-form-field style="width:45%">
<input matInput placeholder="Area Covered" formControlName="area_covered_by_this_property" OnlyNumber type="text"
autocomplete="off">
@ -358,7 +358,7 @@
</mat-form-field> -->
</div>
<span *ngIf="(lender_short_name != 'CLIX') && (lender_short_name == 'MWISE' ? product_abbr != 'BL' ? true : false : true) && (sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3 || sup.get('assets_mode').value == 1)">
<span *ngIf="(lender_short_name != 'CLIX') && (lender_short_name == 'MWISE' ? prod_catagory != 'BL' ? true : false : true) && (sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3 || sup.get('assets_mode').value == 1)">
<mat-form-field style="width:45%">
<mat-label>Age of Asset in Years</mat-label>
<input matInput autocomplete="off" placeholder="eg.99" formControlName="vintage_personal"
@ -384,7 +384,7 @@
</mat-form-field>
</span>
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || product_abbr == 'LFMP'">
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || prod_catagory == 'LFMP'">
<mat-form-field *ngIf="sup.get('assets_mode').value != ''" style="width:95%">
<mat-select placeholder="Is There a Loan Existing Against This Asset?"

View File

@ -74,6 +74,7 @@ export class AssetsInfoComponent implements OnInit {
image_doc_params: { pdid: string; form_id: any; company_id: string; };
form_id: string;
product_abbr: any;
prod_catagory: any;
constructor(
notifier: NotifierService,
private _formBuilder: FormBuilder,
@ -93,6 +94,7 @@ export class AssetsInfoComponent implements OnInit {
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:''}
}

View File

@ -155,8 +155,8 @@
*ngIf="itemrow.controls['business_name_of_the_other_owner'].hasError('required')">Asset
Owned by Required</mat-error>
</mat-form-field>
<!-- {{(lender_short_name == 'MWISE' ? product_abbr != 'BL' ? true : false : true)}} -->
<div *ngIf="(lender_short_name != 'CLIX') && (lender_short_name == 'MWISE' ? product_abbr != 'BL' ? true : false : true)">
<!-- {{(lender_short_name == 'MWISE' ? prod_catagory != 'BL' ? true : false : true)}} -->
<div *ngIf="(lender_short_name != 'CLIX') && (lender_short_name == 'MWISE' ? prod_catagory != 'BL' ? true : false : true)">
<mat-form-field style="width:45%">
<mat-label>Age of Asset in Years</mat-label>
<input matInput autocomplete="off" placeholder="eg.99" formControlName="business_vintage"
@ -184,7 +184,7 @@
</div>
<span *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || product_abbr === 'LFMP'">
<span *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || prod_catagory === 'LFMP'">
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
<mat-form-field style="width:95%"
*ngIf="(itemrow.get('business_ownership_type').value == 'owned')">
@ -417,7 +417,7 @@
*ngIf="sup.controls['business_name_of_the_other_owner'].hasError('required')">Asset
Owned by is Required</mat-error>
</mat-form-field>
<div *ngIf="(lender_short_name != 'CLIX') && (lender_short_name == 'MWISE' ? product_abbr != 'BL' ? true : false : true)">
<div *ngIf="(lender_short_name != 'CLIX') && (lender_short_name == 'MWISE' ? prod_catagory != 'BL' ? true : false : true)">
<mat-form-field style="width:45%">
<mat-label>Age of Asset in Years</mat-label>
<input matInput autocomplete="off" placeholder="eg.99"
@ -444,7 +444,7 @@
</div>
<span
*ngIf="(sup.get('business_assets_mode').value != '') && sup.get('business_ownership_type').value == 'owned' && (lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || product_abbr === 'LFMP')">
*ngIf="(sup.get('business_assets_mode').value != '') && sup.get('business_ownership_type').value == 'owned' && (lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || prod_catagory === 'LFMP')">
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
<mat-form-field style="width:95%">
<mat-select placeholder="Is There a Loan Existing Against This Asset?"

View File

@ -71,6 +71,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
image_doc_params: { pdid: string; form_id: any; company_id: any; };
form_id: string;
product_abbr: any;
prod_catagory: any;
/**Constructor of the class */
constructor(
notifier: NotifierService,
@ -84,6 +85,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
this.form_id='22'
this.lender_short_name=this.pd_all_details.pdmaster_details.lender_short_name
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
this.applicants = this.pd_all_details.pdapplicants_detials;
this.applicants = this.applicants.filter(appt => appt.applicant_type != 2)

View File

@ -33,6 +33,7 @@ export class BusinessInfoGroupComponent implements OnInit {
waitLoading:boolean;
lender_short_name :any;
product_abbr :any;
prod_catagory: any;
constructor(notifier: NotifierService,
private route: ActivatedRoute,
@ -43,13 +44,14 @@ export class BusinessInfoGroupComponent implements OnInit {
this.form_id = 13;
// this.waitLoading=false;
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.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this.lender_short_name = this.pd_all_details.pdmaster_details.lender_short_name;
console.log(this.lender_short_name);
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
console.log(this.product_abbr);
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this.lender_short_name = this.pd_all_details.pdmaster_details.lender_short_name;
console.log(this.lender_short_name);
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
console.log(this.product_abbr);
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
}

View File

@ -1810,7 +1810,7 @@
</div>
<div fxLayout="row" *ngIf="product_abbr == 'LAEP'" >
<div fxLayout="row" *ngIf="prod_catagory == 'LAEP'" >
<mat-form-field>
<mat-select placeholder="Fire NOC" formControlName="fire_noc" (selectionChange)="radioChange($event,8)" required>
<mat-option value="yes">Yes</mat-option>

View File

@ -103,6 +103,7 @@ export class BusinessInfoComponent implements OnInit {
temp_additiondetailofposmachine: any = [];
image_doc_params: { pdid: number; form_id: number; company_id: String; };
@ViewChild('business_activity_type') business_activity_type_scroll : ElementRef
prod_catagory: any;
constructor(notifier: NotifierService,
@ -133,6 +134,7 @@ export class BusinessInfoComponent implements OnInit {
console.log(this.lender_short_name);
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
console.log(this.product_abbr);
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
console.log("com",this.company_id)
this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:this.company_id}
this.getActivity();
@ -396,15 +398,15 @@ export class BusinessInfoComponent implements OnInit {
});
if (selectedRetail.length > 0) {
selectedRetail.length > 0 ? this.businessForm.addControl('export_import_cert', new FormControl('', Validators.required)) : this.businessForm.removeControl('export_import_cert');
if( !(this.lender_short_name == 'CLIX' && this.product_abbr == 'BL') && !(this.lender_short_name == 'MWISE' && this.product_abbr == 'BL')){
console.log('###PAY');console.log(this.lender_short_name,this.product_abbr)
if( !(this.lender_short_name == 'CLIX' && this.prod_catagory == 'BL') && !(this.lender_short_name == 'MWISE' && this.prod_catagory == 'BL')){
console.log('###PAY');console.log(this.lender_short_name,this.prod_catagory)
selectedRetail.length > 0 ? this.businessForm.addControl('applicant_use_mobile_wallets', new FormControl('')) : this.businessForm.removeControl('applicant_use_mobile_wallets');
selectedRetail.length > 0 ? this.businessForm.addControl('applicant_use_pos_machines', new FormControl('')) : this.businessForm.removeControl('applicant_use_pos_machines');
selectedRetail.length > 0 && businessVal.applicant_use_pos_machines == 'yes' ? this.businessForm.addControl('no_of_pos_machines', new FormControl('')) : this.businessForm.removeControl('no_of_pos_machines');
selectedRetail.length > 0 && businessVal.applicant_use_pos_machines == 'yes' ? this.businessForm.addControl('pos_machines_details', this.fb.array([])) : this.businessForm.removeControl('pos_machines_details');
}
else{
console.log('###ELSE');console.log(this.lender_short_name,this.product_abbr)
console.log('###ELSE');console.log(this.lender_short_name,this.prod_catagory)
}
selectedRetail.forEach((element, index) => {
@ -467,7 +469,7 @@ export class BusinessInfoComponent implements OnInit {
});
if (selectedWholesale.length > 0) {
selectedWholesale.length > 0 ? this.businessForm.addControl('export_import_cert', new FormControl('', Validators.required)) : this.businessForm.removeControl('export_import_cert');
if(!(this.lender_short_name == 'CLIX' && this.product_abbr == 'BL') && !(this.lender_short_name == 'MWISE' && this.product_abbr == 'BL')){
if(!(this.lender_short_name == 'CLIX' && this.prod_catagory == 'BL') && !(this.lender_short_name == 'MWISE' && this.prod_catagory == 'BL')){
selectedWholesale.length > 0 ? this.businessForm.addControl('applicant_use_mobile_wallets', new FormControl('')) : this.businessForm.removeControl('applicant_use_mobile_wallets');
selectedWholesale.length > 0 ? this.businessForm.addControl('applicant_use_pos_machines', new FormControl('')) : this.businessForm.removeControl('applicant_use_pos_machines');
selectedWholesale.length > 0 && businessVal.applicant_use_pos_machines == 'yes' ? this.businessForm.addControl('no_of_pos_machines', new FormControl('')) : this.businessForm.removeControl('no_of_pos_machines');
@ -536,7 +538,7 @@ export class BusinessInfoComponent implements OnInit {
});
if (selectedService.length > 0) {
selectedService.length > 0 ? this.businessForm.addControl('practice_cert', new FormControl('', Validators.required)) : this.businessForm.removeControl('practice_cert');
if(!(this.lender_short_name == 'CLIX' && this.product_abbr == 'BL') && !(this.lender_short_name == 'MWISE' && this.product_abbr == 'BL')){
if(!(this.lender_short_name == 'CLIX' && this.prod_catagory == 'BL') && !(this.lender_short_name == 'MWISE' && this.prod_catagory == 'BL')){
selectedService.length > 0 ? this.businessForm.addControl('applicant_use_mobile_wallets', new FormControl('')) : this.businessForm.removeControl('applicant_use_mobile_wallets');
selectedService.length > 0 ? this.businessForm.addControl('applicant_use_pos_machines', new FormControl('')) : this.businessForm.removeControl('applicant_use_pos_machines');
selectedService.length > 0 && businessVal.applicant_use_pos_machines == 'yes' ? this.businessForm.addControl('no_of_pos_machines', new FormControl('')) : this.businessForm.removeControl('no_of_pos_machines');
@ -627,7 +629,7 @@ export class BusinessInfoComponent implements OnInit {
}
}
// this.businessForm.setValue(businessVal);
// this.lender_short_name == 'CLIX' || this.product_abbr == 'LAEP' ? this.businessForm.addControl('fire_noc', new FormControl('', Validators.required)) : this.businessForm.removeControl('fire_noc');
// this.lender_short_name == 'CLIX' || this.prod_catagory == 'LAEP' ? this.businessForm.addControl('fire_noc', new FormControl('', Validators.required)) : this.businessForm.removeControl('fire_noc');
if(data.records.gst_Regn_cert =='yes'){ this.businessForm.addControl('gst_Regn_cert_pic', new FormControl('')); }else{ this.businessForm.removeControl('gst_Regn_cert_pic');}
if(data.records.factory_cert =='yes'){ this.businessForm.addControl('factory_cert_pic', new FormControl('')); }else{ this.businessForm.removeControl('factory_cert_pic');}
if(data.records.practice_cert =='yes'){ this.businessForm.addControl('practice_cert_pic', new FormControl('')); }else{ this.businessForm.removeControl('practice_cert_pic');}
@ -661,7 +663,7 @@ export class BusinessInfoComponent implements OnInit {
// load exist company list from master
// this.existCompanyList = this.pd_all_details.pdapplicants_detials.filter(item=>item.company_name!=null).map(mapItem=>mapItem.company_name);
this.product_abbr == 'LAEP' ? this.businessForm.addControl('fire_noc', new FormControl('', Validators.required)) : this.businessForm.removeControl('fire_noc');
this.prod_catagory == 'LAEP' ? this.businessForm.addControl('fire_noc', new FormControl('', Validators.required)) : this.businessForm.removeControl('fire_noc');
if(this.lender_short_name != 'CLIX'){
// change relation with businees update dat sorce table
@ -806,11 +808,11 @@ export class BusinessInfoComponent implements OnInit {
this.businessForm.value.service_provider_activity_details.length > 0 ? this.businessForm.addControl('practice_cert', new FormControl(this.businessForm.value.practice_cert, Validators.required)) : this.businessForm.removeControl('practice_cert');
// check activity for extra question make dynamic
if(!(this.lender_short_name == 'CLIX' && this.product_abbr == 'BL') && !(this.lender_short_name == 'MWISE' && this.product_abbr == 'BL')){
if(!(this.lender_short_name == 'CLIX' && this.prod_catagory == 'BL') && !(this.lender_short_name == 'MWISE' && this.prod_catagory == 'BL')){
this.businessForm.value.service_provider_activity_details.length > 0 || this.businessForm.value.retail_trading_activity_details.length > 0 || this.businessForm.value.wholesale_trading_activity_details.length > 0 ? this.businessForm.addControl('applicant_use_mobile_wallets', new FormControl(this.businessForm.value.applicant_use_mobile_wallets)) : this.businessForm.removeControl('applicant_use_mobile_wallets');
this.businessForm.value.service_provider_activity_details.length > 0 || this.businessForm.value.retail_trading_activity_details.length > 0 || this.businessForm.value.wholesale_trading_activity_details.length > 0 ? this.businessForm.addControl('applicant_use_pos_machines', new FormControl(this.businessForm.value.applicant_use_pos_machines)) : this.businessForm.removeControl('applicant_use_pos_machines');
if (this.businessForm.value.service_provider_activity_details.length > 0 || this.businessForm.value.retail_trading_activity_details.length > 0 || this.businessForm.value.wholesale_trading_activity_details.length > 0) {
if(this.businessForm.controls['applicant_use_pos_machines'] && this.product_abbr == 'LAEP'){
if(this.businessForm.controls['applicant_use_pos_machines'] && this.prod_catagory == 'LAEP'){
this.businessForm.controls['applicant_use_pos_machines'].setValue('yes');
}
this.changePOSMachinesAvailablity(this.businessForm.value.applicant_use_pos_machines, 2);

View File

@ -35,7 +35,7 @@
<mat-option value="No">No</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field style="width:60% !important;" *ngIf="currentLoanForm.controls.existing_loan.value == 'Yes' && (product_abbr == 'LAEP' || product_abbr == 'BL' )">
<mat-form-field style="width:60% !important;" *ngIf="currentLoanForm.controls.existing_loan.value == 'Yes' && (prod_catagory == 'LAEP' || prod_catagory == 'BL' )">
<mat-select (selectionChange)="selectedLoanChanges($event.value)" placeholder="Details of all loan info available"
formControlName="loan_info_available">
<mat-option>Select</mat-option>

View File

@ -46,6 +46,7 @@ export class CurrentLoanComponent implements OnInit {
isOtherLoanTakenBy:any = [];
image_doc_params: { pdid: number; form_id: number; company_id: string; };
product_abbr: any;
prod_catagory: any;
constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute,
private router: Router,
@ -64,7 +65,8 @@ export class CurrentLoanComponent implements OnInit {
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:''}
this.product_abbr=this.pd_all_details.pdmaster_details.product_abbr
this.product_abbr=this.pd_all_details.pdmaster_details.product_abbr;
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
}
pdf(fileURL){
window.open(fileURL);
@ -430,7 +432,7 @@ export class CurrentLoanComponent implements OnInit {
public initCurrentloanForm(): void {
this.currentLoanForm = this.fb.group({
existing_loan: [''],
loan_info_available:[this.product_abbr == 'BL' || this.product_abbr == 'LAEP' ? '' : 'Yes'],
loan_info_available:[this.prod_catagory == 'BL' || this.prod_catagory == 'LAEP' ? '' : 'Yes'],
currentloan_remarks: [''],
loan_details: this.fb.array([]),
});

View File

@ -139,7 +139,7 @@
</mat-form-field>
</div> -->
<div *ngIf="lender_short_name !== 'CLIX' && lender_short_name !== 'MWISE' || product_abbr === 'LFMP'">
<div *ngIf="lender_short_name !== 'CLIX' && lender_short_name !== 'MWISE' || prod_catagory === 'LFMP'">
<div formArrayName="family_members_details">
<div *ngFor="let item of sup.controls.family_members_details['controls']; let i=index; let last=last "
[formGroupName]="i">
@ -278,7 +278,7 @@
</mat-card-actions>
</div>
<div *ngIf="lender_short_name === 'CLIX' || lender_short_name === 'MWISE' && product_abbr != 'LFMP'">
<div *ngIf="lender_short_name === 'CLIX' || lender_short_name === 'MWISE' && prod_catagory != 'LFMP'">
<mat-card>
<mat-card-header>
<mat-card-title>

View File

@ -69,6 +69,7 @@ export class FamilyDetailsComponent implements OnInit {
pincodeDataList: any = [];
product_abbr: any;
addressList: any = [];
prod_catagory: any;
/** constructor Of the class */
constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute,
@ -84,6 +85,7 @@ export class FamilyDetailsComponent implements OnInit {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
this.lender_short_name=this.pd_all_details.pdmaster_details.lender_short_name;
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;

View File

@ -156,11 +156,11 @@
<mat-error *ngIf="_finalRemarkForm.controls['mode_of_transport_during_visit'].hasError('required')">Specify the Mode of Transport Used to Visit the PD address Required</mat-error>
</mat-form-field>
<mat-card *ngIf="lender_short_name == 'CLIX' || lender_short_name == 'MWISE' || product_abbr == 'LAEP'">
<mat-card *ngIf="lender_short_name == 'CLIX' || lender_short_name == 'MWISE' || prod_catagory == 'LAEP'">
<mat-card-content>
<mat-card-subtitle *ngIf="lender_short_name == 'CLIX'">CLIX</mat-card-subtitle>
<mat-card-subtitle *ngIf="lender_short_name == 'MWISE'">MWISE</mat-card-subtitle>
<mat-form-field style="width:94%;" *ngIf="_finalRemarkForm.controls['outlet_location'] && product_abbr == 'LAEP'">
<mat-form-field style="width:94%;" *ngIf="_finalRemarkForm.controls['outlet_location'] && prod_catagory == 'LAEP'">
<mat-select placeholder="Comment on Footfall in the market where the B2C outlet is located…" formControlName="outlet_location"
required>
<mat-option>Select</mat-option>

View File

@ -56,6 +56,7 @@ export class FinalRemarksComponent implements OnInit {
public documentsAndFilesList = [];
private notifier: NotifierService;
image_doc_params: { pdid: string; form_id: number; company_id: string; };
prod_catagory: any;
constructor(
notifier: NotifierService,
@ -75,6 +76,7 @@ export class FinalRemarksComponent implements OnInit {
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this.lender_short_name = this.pd_all_details.pdmaster_details.lender_short_name;
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
this._finalRemarkForm = this._formBuilder.group({
parent_pdid: [this.parent_pdid],
@ -104,8 +106,8 @@ export class FinalRemarksComponent implements OnInit {
final_form_remarks: ['']
});
if(this.lender_short_name == 'CLIX' || this.lender_short_name == 'MWISE' || this.product_abbr == 'LAEP'){
this.product_abbr == 'LAEP' ? this._finalRemarkForm.addControl('outlet_location', new FormControl('', Validators.required)) : this._finalRemarkForm.removeControl('outlet_location');
if(this.lender_short_name == 'CLIX' || this.lender_short_name == 'MWISE' || this.prod_catagory == 'LAEP'){
this.prod_catagory == 'LAEP' ? this._finalRemarkForm.addControl('outlet_location', new FormControl('', Validators.required)) : this._finalRemarkForm.removeControl('outlet_location');
this._finalRemarkForm.addControl('is_competition', new FormControl(''));
this._finalRemarkForm.addControl('sealing_activity', new FormControl(''));
this._finalRemarkForm.addControl('demolition_activity', new FormControl(''));
@ -116,7 +118,7 @@ export class FinalRemarksComponent implements OnInit {
this._finalRemarkForm.removeControl('sealing_activity');
this._finalRemarkForm.removeControl('demolition_activity');
}
// if(this.product_abbr != 'LAEP'){
// if(this.prod_catagory != 'LAEP'){
// this._finalRemarkForm.controls['final_form_remarks'].setValidators(Validators.compose([Validators.required]))
// }
// else{
@ -244,9 +246,9 @@ export class FinalRemarksComponent implements OnInit {
this._finalRemarkForm.controls.market_intelligence.setValue(data.records.market_intelligence || '');
if(this.lender_short_name == 'CLIX' || this.lender_short_name == 'MWISE' || this.product_abbr == 'LAEP'){
if(this.lender_short_name == 'CLIX' || this.lender_short_name == 'MWISE' || this.prod_catagory == 'LAEP'){
if(this.product_abbr == 'LAEP') {this._finalRemarkForm.controls.outlet_location.setValue(this.product_abbr == 'LAEP' ? data.records.outlet_location : ''); }
if(this.prod_catagory == 'LAEP') {this._finalRemarkForm.controls.outlet_location.setValue(this.prod_catagory == 'LAEP' ? data.records.outlet_location : ''); }
this._finalRemarkForm.controls.is_competition.setValue(data.records.is_competition);
this._finalRemarkForm.controls.sealing_activity.setValue(data.records.sealing_activity);
this._finalRemarkForm.controls.demolition_activity.setValue(data.records.demolition_activity);

View File

@ -477,7 +477,7 @@
formControlName="estimate_reason_for_loss">
</mat-form-field>
</div>
<mat-form-field style="width:54%" *ngIf="lender_short_name == 'CLIX' && product_abbr =='LAEP'">
<mat-form-field style="width:54%" *ngIf="lender_short_name == 'CLIX' && prod_catagory =='LAEP'">
<input matInput placeholder="Annual Sales through Credit Card / POS machines"
formControlName="estimate_posmachine_or_cc_annual_sales">
<mat-hint align="start" style="font-size:90%" *ngIf="details.get('estimate_posmachine_or_cc_annual_sales').value != ''">{{"&#8377;"}}

View File

@ -84,6 +84,7 @@ export class FinancialInfoComponent implements OnInit {
// values = [0, 1, 2, 3];
documentsAndFilesList: any = [];
image_doc_params: { pdid: string; form_id: number; company_id: string; };
prod_catagory: any;
constructor(notifier: NotifierService,
private fb: FormBuilder,
@ -103,6 +104,7 @@ export class FinancialInfoComponent implements OnInit {
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;
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;
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
let x = this.customer_segment_abbr.split("-");

View File

@ -54,6 +54,7 @@ export class FuturePlansAndBusinessEnvironmentComponent implements OnInit {
public documentsAndFilesList = [];
private notifier: NotifierService;
image_doc_params: { pdid: string; form_id: number; company_id: any; };
prod_catagory: any;
constructor(
notifier: NotifierService,
@ -75,6 +76,7 @@ export class FuturePlansAndBusinessEnvironmentComponent implements OnInit {
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this.lender_short_name = this.pd_all_details.pdmaster_details.lender_short_name;
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
this._futurePlansForm = this._formBuilder.group({
parent_pdid: [this.parent_pdid],
@ -89,7 +91,7 @@ export class FuturePlansAndBusinessEnvironmentComponent implements OnInit {
remarks: ['']
});
if(this.lender_short_name == 'CLIX' || this.product_abbr == 'LAEP'){ }
if(this.lender_short_name == 'CLIX' || this.prod_catagory == 'LAEP'){ }
else{ }
this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:this.company_id}
}

View File

@ -58,7 +58,7 @@
<mat-error *ngIf="loanDetailsForm.controls['end_use_other'].hasError('required')">End Use Required</mat-error>
</mat-form-field>
<mat-form-field style="width: 28%" *ngIf="lenderShortName == 'CLIX' || lenderShortName == 'MWISE' && productAbbr != 'LFMP'">
<mat-form-field style="width: 28%" *ngIf="lenderShortName == 'CLIX' || lenderShortName == 'MWISE' && prod_catagory != 'LFMP'">
<mat-select placeholder="Total fund requirement"
formControlName="is_there_total_fund">
<mat-option>Select</mat-option>
@ -76,7 +76,7 @@
</mat-form-field>
</span>
<div *ngIf="lenderShortName != 'CLIX' && lenderShortName != 'MWISE' || productAbbr == 'LFMP'">
<div *ngIf="lenderShortName != 'CLIX' && lenderShortName != 'MWISE' || prod_catagory == 'LFMP'">
<mat-form-field style="width: 64%">
<mat-select placeholder="Is there a balance transfer ? " (selectionChange)="selectedBalancesTransferChanges($event.value)"
formControlName="is_transfer">
@ -119,7 +119,7 @@
</mat-form-field>
<mat-form-field style="width:64%" *ngIf="loanDetailsForm.controls['topup_amount'].value > 0 && (lenderShortName != 'CLIX' && lenderShortName != 'MWISE' || productAbbr == 'LFMP')">
<mat-form-field style="width:64%" *ngIf="loanDetailsForm.controls['topup_amount'].value > 0 && (lenderShortName != 'CLIX' && lenderShortName != 'MWISE' || prod_catagory == 'LFMP')">
<mat-select placeholder="What is the End Use of the Top Up?"
formControlName="end_use_topup">
<mat-option>Select</mat-option>
@ -166,7 +166,7 @@
</span>
<mat-form-field style="width: 64%" *ngIf="lenderShortName != 'CLIX' && lenderShortName != 'MWISE' || productAbbr == 'LFMP'">
<mat-form-field style="width: 64%" *ngIf="lenderShortName != 'CLIX' && lenderShortName != 'MWISE' || prod_catagory == 'LFMP'">
<input matInput placeholder="EMI Amount Comfortable Paying" formControlName="emi_level"
OnlyNumber type="text" autocomplete="off">
<mat-hint align="start" style="font-size:90%" *ngIf="loanDetailsForm.controls['emi_level'].value != ''">{{"&#8377;"}} {{ loanDetailsForm.controls['emi_level'].value | numberToWords }} Only</mat-hint>
@ -175,7 +175,7 @@
</mat-card-content>
</mat-card>
<!-- <div *ngIf="productAbbr === 'HL' || productAbbr === 'LL' || productAbbr === 'LAP' "> -->
<!-- <div *ngIf="prod_catagory === 'HL' || prod_catagory === 'LL' || prod_catagory === 'LAP' "> -->
<mat-card *ngIf="mortageCardAccess">
<mat-card-header>
<p>Details of Property being Mortgaged</p>
@ -246,7 +246,7 @@
<mat-hint align="start" style="font-size:90%" *ngIf="loanDetailsForm.controls['emv_per_customer'].value != ''">{{"&#8377;"}} {{ loanDetailsForm.controls['emv_per_customer'].value | numberToWords }} Only</mat-hint>
</mat-form-field>
<mat-form-field *ngIf="productAbbr !== 'LAP' && productAbbr !== 'LFMP'" style="width:96%;">
<mat-form-field *ngIf="prod_catagory !== 'LAP' && prod_catagory !== 'LFMP'" style="width:96%;">
<input matInput placeholder="Name of current owner(s)/ Seller(s) of the property" formControlName="property_seller"
autocomplete="off">
</mat-form-field>

View File

@ -94,6 +94,7 @@ export class LoanDetailsComponent implements OnInit {
address_placeholder: string;
image_doc_params: { pdid: number; form_id: number; company_id: string; };
addressList: any = [];
prod_catagory: any;
@ -112,6 +113,7 @@ export class LoanDetailsComponent implements OnInit {
this.applicants = this.applicants.filter(appt => appt.applicant_type != 2)
// this.companies = this.pd_all_details.pdapplicants_detials.filter(appt=>appt.applicant_type == 2 )
this.productAbbr = this.pd_all_details.pdmaster_details.product_abbr;
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
this.productID = this.pd_all_details.pdmaster_details.fk_product_id;
this.subProductName = this.pd_all_details.pdmaster_details.subproduct_name;
this.exist_loan_amt = this.pd_all_details.pdmaster_details.loan_amount != '' ? this.pd_all_details.pdmaster_details.loan_amount : '';
@ -126,10 +128,10 @@ export class LoanDetailsComponent implements OnInit {
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this.lenderShortName = this.pd_all_details.pdmaster_details.lender_short_name;
if (this.productAbbr == 'PL' || this.productAbbr == 'BL' || this.productAbbr == 'LAP' || this.productAbbr == 'LFMP') {
if (this.prod_catagory == 'PL' || this.prod_catagory == 'BL' || this.prod_catagory == 'LAP' || this.prod_catagory == 'LFMP') {
this.isContribution = true;
}
if(this.productAbbr == 'HL' || this.productAbbr == 'NRPL' || this.productAbbr == 'LL'){
if(this.prod_catagory == 'HL' || this.prod_catagory == 'NRPL' || this.prod_catagory == 'LL'){
this.Owner_placeholder="Name of the proposed owner"
this.address_placeholder="Address of the proposed property"
}
@ -183,7 +185,7 @@ export class LoanDetailsComponent implements OnInit {
// this.listOfLanguagues.splice(this.listOfLanguagues.indexOf(languague), 1);
}
if (this.productAbbr != 'LAP') {
if (this.prod_catagory != 'LAP') {
this.mergeCompanyApplicant.push({ groupName: 'OTHERS', groupValues: [{ id: 0, name: 'Not Yet Finalised', group_id: 2 }] })
}
@ -198,7 +200,7 @@ export class LoanDetailsComponent implements OnInit {
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
this._pd.retriveForm(params).subscribe(value => {
// *ngIf="productAbbr === 'HL' || productAbbr === 'LL' || productAbbr === 'LAP' "
// *ngIf="prod_catagory === 'HL' || prod_catagory === 'LL' || prod_catagory === 'LAP' "
if (value.status == 200) {
let result = Object.keys(value.records.end_use_group).map(function (key) {
return value.records.end_use_group[key];
@ -319,10 +321,10 @@ export class LoanDetailsComponent implements OnInit {
this.loanDetailsForm.controls['emv_per_customer'].setValue(value.records.emv_per_customer);
// this.emvAmtInWords = this._pd.convertNumberToWords(value.records.emv_per_customer);
}
console.log("product abbr",this.productAbbr);
console.log("product abbr",this.prod_catagory);
console.log("value",value)
this.loanDetailsForm.controls['property_seller'].setValue(this.productAbbr != 'LAP' ? value.records.property_seller || null : '');
this.loanDetailsForm.controls['property_seller'].setValue(this.prod_catagory != 'LAP' ? value.records.property_seller || null : '');
this.loanDetailsForm.controls['address'].setValue(value.records.address || null);
this.loanDetailsForm.controls['state'].setValue(value.records.state || null );
if(value.records.state != ''){this.getCityAndPincodeDetails(value.records.state);}
@ -346,7 +348,7 @@ export class LoanDetailsComponent implements OnInit {
}
})
if (this.productAbbr == 'BL' || this.productAbbr == 'PL' || this.productAbbr == 'LAEP') {
if (this.prod_catagory == 'BL' || this.prod_catagory == 'PL' || this.prod_catagory == 'LAEP') {
this.mortageCardAccess = false;
this.loanDetailsForm.controls['owner_name'].setValue('');
this.loanDetailsForm.controls['owner_name'].clearValidators();

View File

@ -46,7 +46,7 @@
<mat-error *ngIf="mrm.controls['stock_observed'].hasError('required')">Stock Required</mat-error>
</mat-form-field>
<span *ngIf="mrm.get('stock_observed').value == 'yes'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || product_abbr == 'LFMP'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || prod_catagory == 'LFMP'">
<mat-form-field style="width:30%">
<input matInput autocomplete="off" placeholder="Estimated Quantity"
formControlName="raw_quantity" OnlyNumber type="text">
@ -141,7 +141,7 @@
</mat-select>
</mat-form-field>
<span *ngIf="mfg.get('goods_observed').value == 'yes'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || product_abbr == 'LFMP'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || prod_catagory == 'LFMP'">
<mat-form-field style="width:30%">
<input matInput autocomplete="off" placeholder="Estimated Quantity"
formControlName="goods_quantity" OnlyNumber
@ -227,7 +227,7 @@
</mat-select>
</mat-form-field>
<span *ngIf="item.get('traded_goods_observed').value == 'yes'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || product_abbr == 'LFMP'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || prod_catagory == 'LFMP'">
<mat-form-field style="width:30%">
<input matInput autocomplete="off" placeholder="Estimated Quantity"
formControlName="traded_goods_quantity"
@ -316,7 +316,7 @@
</mat-select>
</mat-form-field>
<span *ngIf="tradetg.get('traded_goods_observed').value == 'yes'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || product_abbr == 'LFMP'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || prod_catagory == 'LFMP'">
<mat-form-field style="width:30%">
<input matInput autocomplete="off" placeholder="Estimated Quantity"
formControlName="traded_goods_quantity"
@ -430,7 +430,7 @@
</mat-select>
</mat-form-field>
<span *ngIf="sp.get('service_provider_observed').value == 'yes'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || product_abbr == 'LFMP'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || prod_catagory == 'LFMP'">
<mat-form-field style="width:30%">
<input matInput autocomplete="off" placeholder="Estimated Quantity"
formControlName="service_provider_quantity"

View File

@ -60,6 +60,7 @@ export class StockComponent implements OnInit {
lender_short_name: any;
image_doc_params: { pdid: number; form_id: number; company_id: string; };
product_abbr: any;
prod_catagory: any;
/** Constructor */
constructor(notifier: NotifierService,
@ -75,6 +76,7 @@ export class StockComponent implements OnInit {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id
this.lender_short_name=this.pd_all_details.pdmaster_details.lender_short_name
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.form_id = 11;
this.company_id = this.pd_all_details.company_id;

View File

@ -68,6 +68,7 @@ export class QcStartComponent implements OnInit, OnDestroy {
actualQuestions: number;
answeredQuestions: number;
private notifier: NotifierService;
prod_catagory: any;
constructor(notifier: NotifierService, private dialog: MatDialog, private fb: FormBuilder, private route: ActivatedRoute,
private router: Router,
@ -119,6 +120,7 @@ export class QcStartComponent implements OnInit, OnDestroy {
this.categoryFormButtons = Object.keys(data.records.template_forms).map((item)=>data.records.template_forms[item]).filter(item=>item.isAnswerable===true);
this.lender_short_name = data.records.pdmaster_details.lender_short_name;
this.product_abbr = data.records.pdmaster_details.product_abbr;
this.prod_catagory = data.records.pdmaster_details.prod_catagory;
// this.categoryFormButtons = this.categoryFormButtons.filter(item=>item.isAnswerable===true);
this.actualQuestions = this.categoryFormButtons.length;
let getAnsweredFormsCount = this.categoryFormButtons.filter(item=>item.isAnswered===true);
@ -445,21 +447,22 @@ export class QcStartComponent implements OnInit, OnDestroy {
.subscribe(dataresult => {
this.loadTemplates(this.startPD,2,this.randomString);
});
}else
if((this.lender_short_name == 'CLIX' || this.product_abbr == 'LAEP') && this.selectedFormsCategory.form_id==23){
const dialogRef = this.dialog.open(FuturePlansAndBusinessEnvironmentComponent, {
data: this.pdFullDetails,
maxWidth: '100vw',
maxHeight: '100vh',
height: '100%',
width: '100%',
disableClose: true
});
dialogRef.afterClosed()
.subscribe(dataresult => {
this.loadTemplates(this.startPD,2,this.randomString);
});
}
// else
// if((this.lender_short_name == 'CLIX' || this.product_abbr == 'LAEP') && this.selectedFormsCategory.form_id==23){
// const dialogRef = this.dialog.open(FuturePlansAndBusinessEnvironmentComponent, {
// data: this.pdFullDetails,
// maxWidth: '100vw',
// maxHeight: '100vh',
// height: '100%',
// width: '100%',
// disableClose: true
// });
// dialogRef.afterClosed()
// .subscribe(dataresult => {
// this.loadTemplates(this.startPD,2,this.randomString);
// });
// }
else
if(this.selectedFormsCategory.form_id==24){
const dialogRef = this.dialog.open(QueriesDocsComponent, {