merge btranch cfbl
This commit is contained in:
commit
44717000c8
Binary file not shown.
Binary file not shown.
@ -3,7 +3,7 @@
|
||||
"version": "1.0.0",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"production": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --prod ",
|
||||
"production": "node --max_old_space_size=6144 node_modules/@angular/cli/bin/ng build --prod ",
|
||||
"staging": "node --max_old_space_size=6144 node_modules/@angular/cli/bin/ng build --configuration=staging",
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
|
||||
@ -54,7 +54,8 @@
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field style="width: 28%">
|
||||
<input matInput autocomplete="off" placeholder="Loan Application ID" formControlName="lender_applicant_id" type="text" (change)="checkExistPd($event.target.value,1)">
|
||||
<mat-label>{{lenderShortName == 'CFPL' ? 'Facility' :'Loan'}} Application ID</mat-label>
|
||||
<input matInput autocomplete="off" formControlName="lender_applicant_id" type="text" (change)="checkExistPd($event.target.value,1)">
|
||||
<!-- <mat-error *ngIf="pdMain.lender_applicant_id.hasError('required')">Applicant ID Required</mat-error> -->
|
||||
</mat-form-field>
|
||||
<!-- <div *ngIf="sales_and_credit_enable"> -->
|
||||
@ -158,9 +159,10 @@
|
||||
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 60%">
|
||||
<input matInput autocomplete="off" placeholder="Loan Amount" formControlName="loan_amount" OnlyNumber required autocomplete="off">
|
||||
<mat-label>{{lenderShortName == 'CFPL' ? 'Facility' :'Loan'}} Amount <span *ngIf="pdMain.loan_amount.hasError('required')">*</span></mat-label>
|
||||
<input matInput autocomplete="off" placeholder="Enter the amount" formControlName="loan_amount" OnlyNumber autocomplete="off">
|
||||
<mat-hint align="start" style="font-size:90%" *ngIf="pdMain.loan_amount.value">{{"₹"}} {{pdMain.loan_amount.value | numberToWords}} Only</mat-hint>
|
||||
<!-- <mat-error *ngIf="pdMain.loan_amount.hasError('required')">Amount Required.</mat-error> -->
|
||||
<mat-error *ngIf="pdMain.loan_amount.hasError('required')">Required.</mat-error>
|
||||
<mat-error *ngIf="pdMain.loan_amount.hasError('pattern')">Enter valid amount. </mat-error>
|
||||
|
||||
</mat-form-field>
|
||||
|
||||
@ -165,7 +165,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
||||
fk_subproduct_id: [null],
|
||||
fk_pd_type: [null],
|
||||
fk_customer_segment: [null],
|
||||
loan_amount: [null, Validators.compose([Validators.pattern('^[0-9]*$')])],
|
||||
loan_amount: [null, Validators.compose([Validators.required,Validators.pattern('^[0-9]*$')])],
|
||||
applicant_title_name: [''],
|
||||
applicant_name: [null,Validators.compose([Validators.required])],
|
||||
mobile_no: [null, Validators.compose([Validators.maxLength(10), Validators.minLength(10)])],
|
||||
@ -236,6 +236,16 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
this._PDtriggerForm.controls['sub_entity_id'].setValue(lender.entity_id)
|
||||
|
||||
if(lender.short_name == 'CFPL'){
|
||||
this._PDtriggerForm.controls['loan_amount'].clearValidators();
|
||||
this._PDtriggerForm.controls['loan_amount'].setValidators([Validators.pattern('^[0-9]*$')])
|
||||
this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity();
|
||||
}
|
||||
else{
|
||||
this._PDtriggerForm.controls['loan_amount'].setValidators([Validators.required,Validators.pattern('^[0-9]*$')]);
|
||||
this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity();
|
||||
}
|
||||
|
||||
// if(this.lenderShortName == "IIB"){ //FOR INDUSLAND BANK
|
||||
// // console.log("entered");
|
||||
// this._PDtriggerForm.controls['fk_product_id'].setValue("3")
|
||||
@ -577,9 +587,11 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
||||
|
||||
this._PDtriggerForm.controls['fk_customer_segment'].setValidators([Validators.required]);
|
||||
this._PDtriggerForm.controls['fk_customer_segment'].updateValueAndValidity();
|
||||
|
||||
|
||||
if(this.lenderShortName != 'CFPL') {
|
||||
this._PDtriggerForm.controls['loan_amount'].setValidators([Validators.required]);
|
||||
this._PDtriggerForm.controls['loan_amount'].updateValueAndValidity();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -997,7 +1009,7 @@ checkExistPd(value,option){
|
||||
switch(option){
|
||||
case 1:
|
||||
param={lender_applicant_id:value}
|
||||
name= "Loan Application Id"
|
||||
name= this.lenderShortName == 'CFPL' ? 'Facility' : 'Loan' +" Application Id"
|
||||
swal_text="The Entered "+name+" ("+value+") is already exists on the Case No. "
|
||||
break;
|
||||
case 2:
|
||||
|
||||
@ -12,7 +12,8 @@
|
||||
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start">
|
||||
|
||||
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
||||
<input matInput placeholder="New Loan Application ID" formControlName="lender_applicant_id">
|
||||
<mat-label>New {{data.lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} Application ID</mat-label>
|
||||
<input matInput formControlName="lender_applicant_id">
|
||||
<mat-error *ngIf="submitted && f.lender_applicant_id.hasError('required')" class="mat-text-warn">Lender Applicant ID.</mat-error>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
@ -67,7 +67,8 @@
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field style="width: 29%">
|
||||
<input matInput placeholder=" Loan Application ID" formControlName="lender_applicant_id"
|
||||
<mat-label>{{lenderShortName == 'CFPL' ? 'Facility' :'Loan'}} Application ID</mat-label>
|
||||
<input matInput formControlName="lender_applicant_id"
|
||||
type="text" (change)="checkExistPd($event.target.value)">
|
||||
</mat-form-field>
|
||||
<!-- <div *ngIf="sales_and_credit_enable"> -->
|
||||
@ -174,8 +175,9 @@
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 62%">
|
||||
<!-- <input matInput placeholder="Loan Amount" formControlName="loan_amount"> -->
|
||||
<input matInput placeholder="Loan Amount" formControlName="loan_amount"
|
||||
OnlyNumber required
|
||||
<mat-label>{{lenderShortName == 'CFPL' ? 'Facility' :'Loan'}} Amount <span *ngIf="pdMain.loan_amount.hasError('required')">*</span></mat-label>
|
||||
<input matInput formControlName="loan_amount"
|
||||
OnlyNumber
|
||||
autocomplete="off">
|
||||
<mat-hint align="start" style="font-size:90%" *ngIf="pdMain.loan_amount.value != ''">{{"₹"}} {{pdMain.loan_amount.value | numberToWords}} Only</mat-hint>
|
||||
<!-- <mat-error *ngIf="pdMain.loan_amount.hasError('required')">Amount Required.</mat-error> -->
|
||||
|
||||
@ -255,6 +255,15 @@ if(!option){
|
||||
// this._EditPDtriggerForm.controls['fk_product_id'].setValue("3")
|
||||
// this._EditPDtriggerForm.controls['fk_pd_type'].setValue("1");
|
||||
this.getSubproductList("3",2)
|
||||
}
|
||||
if(lender.short_name == 'CFPL'){
|
||||
this._EditPDtriggerForm.controls['loan_amount'].clearValidators();
|
||||
this._EditPDtriggerForm.controls['loan_amount'].setValidators([Validators.pattern('^[0-9]*$')])
|
||||
this._EditPDtriggerForm.controls['loan_amount'].updateValueAndValidity();
|
||||
}
|
||||
else{
|
||||
this._EditPDtriggerForm.controls['loan_amount'].setValidators([Validators.required,Validators.pattern('^[0-9]*$')]);
|
||||
this._EditPDtriggerForm.controls['loan_amount'].updateValueAndValidity();
|
||||
}
|
||||
// console.log("len",lender)
|
||||
}
|
||||
@ -378,7 +387,7 @@ if(!option){
|
||||
fk_subproduct_id: [this.data.records.fk_subproduct_id],
|
||||
fk_pd_type: [this.data.records.fk_pd_type],
|
||||
fk_customer_segment: [this.data.records.fk_customer_segment],
|
||||
loan_amount: [this.data.records.loan_amount,Validators.compose([Validators.pattern('^[0-9]*$')])],
|
||||
loan_amount: [this.data.records.loan_amount,Validators.compose([Validators.required,Validators.pattern('^[0-9]*$')])],
|
||||
addresses: this._fb.array([]),
|
||||
// addressline1: [this.data.records.addressline1.toUpperCase()],
|
||||
// fk_city: [this.data.records.fk_city],
|
||||
@ -914,7 +923,7 @@ checkExistPd(value){
|
||||
Swal({
|
||||
title:"Warning!",
|
||||
type:'warning',
|
||||
text:"The Entered Loan Application Id ("+value+") is already exists on the Case No. "+result['records'][0].pd_sno})
|
||||
text:`The Entered ${this.lenderShortName == 'CFPL' ? 'Facility' : 'Loan'} Application Id (${value}) is already exists on the Case No. `+result['records'][0].pd_sno})
|
||||
// this._EditPDtriggerForm.controls['lender_applicant_id'].setValue('');
|
||||
}
|
||||
}
|
||||
|
||||
@ -392,7 +392,8 @@
|
||||
<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?"
|
||||
<mat-label>Is There a Loan Against This Asset?</mat-label>
|
||||
<mat-select
|
||||
formControlName="emi">
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option value="yes">Yes</mat-option>
|
||||
|
||||
@ -188,7 +188,8 @@
|
||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||
<mat-form-field style="width:95%"
|
||||
*ngIf="(itemrow.get('business_ownership_type').value == 'owned')">
|
||||
<mat-select placeholder="Is There a Loan Existing Against This Asset?"
|
||||
<mat-label>Is There a {{lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} Existing Against This Asset?</mat-label>
|
||||
<mat-select
|
||||
formControlName="business_emi">
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option value="yes">Yes</mat-option>
|
||||
@ -447,7 +448,8 @@
|
||||
*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?"
|
||||
<mat-label>Is There a {{lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} Existing Against This Asset?</mat-label>
|
||||
<mat-select
|
||||
formControlName="business_emi">
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option value="yes">Yes</mat-option>
|
||||
|
||||
@ -30,10 +30,10 @@ export class OtherApplicantDetailsComponent implements OnInit {
|
||||
// }
|
||||
console.log("data",this.data)
|
||||
if(this.data.edit_data){
|
||||
this.pageTitle="Update Name of Person(s) Met and Individual Loan Applicant(s) "
|
||||
this.pageTitle="Update Name of Person(s) Met and Individual "+ this.data.lender_short_name == 'CFPL' ? 'Facility' : 'Loan' +" Applicant(s) "
|
||||
}
|
||||
else{
|
||||
this.pageTitle="Add Name of Person(s) Met and Individual Loan Applicant(s) "
|
||||
this.pageTitle=`Add Name of Person(s) Met and Individual ${this.data.lender_short_name == 'CFPL' ? 'Facility' : 'Loan'} Applicant(s) `
|
||||
}
|
||||
this.role_id=localStorage.getItem('user_role')
|
||||
console.log('User Role',this.role_id);
|
||||
|
||||
@ -126,7 +126,7 @@
|
||||
<input matInput placeholder="Specify Ownership" formControlName="ownershipOther">
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field *ngIf="sup.get('residence_ownership').value == 1" style="width:43%;">
|
||||
<mat-form-field *ngIf="sup.get('residence_ownership').value == 3" style="width:43%;margin-bottom: 1%;">
|
||||
<input matInput placeholder=" Monthly Rent Amount" formControlName="rent"
|
||||
OnlyNumber type="text">
|
||||
<mat-hint align="start" style="font-size:90%" *ngIf="sup.get('rent').value != ''">{{"₹"}} {{sup.get('rent').value | numberToWords}} Only</mat-hint>
|
||||
@ -139,7 +139,7 @@
|
||||
</mat-form-field>
|
||||
</div> -->
|
||||
|
||||
<div *ngIf="lender_short_name !== 'CLIX' && lender_short_name !== 'MWISE' && lender_short_name !== 'UDAAN' || prod_catagory === 'LFMP'">
|
||||
<div *ngIf="lender_short_name !== 'CLIX' && lender_short_name !== 'MWISE' && lender_short_name !== 'UDAAN' && lender_short_name !== 'CFPL' || 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">
|
||||
@ -283,7 +283,7 @@
|
||||
</mat-card-actions>
|
||||
</div>
|
||||
|
||||
<div *ngIf="lender_short_name === 'CLIX' || lender_short_name === 'MWISE' || lender_short_name === 'UDAAN' && prod_catagory != 'LFMP'">
|
||||
<div *ngIf="lender_short_name === 'CLIX' || lender_short_name === 'MWISE' || lender_short_name === 'UDAAN' || lender_short_name === 'CFPL' && prod_catagory != 'LFMP'">
|
||||
<mat-card>
|
||||
<mat-card-header>
|
||||
<mat-card-title>
|
||||
|
||||
@ -587,19 +587,28 @@ export class FamilyDetailsComponent implements OnInit {
|
||||
let familyDetailsFormGrp : FormGroup = familyFormArray.controls[cnt1] as FormGroup;
|
||||
let familyMembersFormArr : FormArray = familyDetailsFormGrp.controls.family_members_details as FormArray;
|
||||
|
||||
familyDetailsFormGrp.controls.residence_ownership.value == 1
|
||||
? familyDetailsFormGrp.controls.ownershipOther.setValidators([Validators.required])
|
||||
: familyDetailsFormGrp.controls.ownershipOther.setValue('');
|
||||
familyDetailsFormGrp.controls.ownershipOther.updateValueAndValidity();
|
||||
if (familyDetailsFormGrp.controls.residence_ownership.value == 1) {
|
||||
familyDetailsFormGrp.controls.ownershipOther.setValidators([Validators.required])
|
||||
}
|
||||
else {
|
||||
familyDetailsFormGrp.controls.ownershipOther.setValue(''); familyDetailsFormGrp.controls.ownershipOther.clearValidators()
|
||||
}
|
||||
familyDetailsFormGrp.controls.ownershipOther.updateValueAndValidity();
|
||||
|
||||
familyDetailsFormGrp.controls.residence_ownership.value == 3
|
||||
? familyDetailsFormGrp.controls.rent.setValidators([Validators.required])
|
||||
: familyDetailsFormGrp.controls.rent.setValue('');
|
||||
if (familyDetailsFormGrp.controls.residence_ownership.value == 3) {
|
||||
familyDetailsFormGrp.controls.rent.setValidators([Validators.required])
|
||||
}
|
||||
else {
|
||||
familyDetailsFormGrp.controls.rent.setValue(''); familyDetailsFormGrp.controls.rent.clearValidators()
|
||||
}
|
||||
familyDetailsFormGrp.controls.rent.updateValueAndValidity();
|
||||
|
||||
familyDetailsFormGrp.controls.residence_pin.value == 1
|
||||
? familyDetailsFormGrp.controls.residence_other_pincode.setValidators([Validators.required])
|
||||
: familyDetailsFormGrp.controls.residence_other_pincode.setValue('');
|
||||
if (familyDetailsFormGrp.controls.residence_pin.value == 1) {
|
||||
familyDetailsFormGrp.controls.residence_other_pincode.setValidators([Validators.required])
|
||||
}
|
||||
else {
|
||||
familyDetailsFormGrp.controls.residence_other_pincode.setValue(''); familyDetailsFormGrp.controls.residence_other_pincode.clearValidators()
|
||||
}
|
||||
familyDetailsFormGrp.controls.residence_other_pincode.updateValueAndValidity();
|
||||
|
||||
let FMArrayLength: any = familyMembersFormArr.controls.length;
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
<!-- individuals details start-->
|
||||
<mat-card>
|
||||
<mat-card-header>
|
||||
<mat-card-title>Name of Person(s) Met and Individual Loan Applicant(s) </mat-card-title>
|
||||
<mat-card-title>Name of Person(s) Met and Individual {{lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} Applicant(s) </mat-card-title>
|
||||
</mat-card-header>
|
||||
<mat-card-content>
|
||||
<mat-table [dataSource]="individualsSource"
|
||||
@ -48,7 +48,7 @@
|
||||
</ng-container>
|
||||
<ng-container matColumnDef="is_applicant">
|
||||
<mat-header-cell *matHeaderCellDef>
|
||||
<span *ngIf="fk_pd_type == '3' || fk_pd_type == '2'">Is Loan applicant</span>
|
||||
<span *ngIf="fk_pd_type == '3' || fk_pd_type == '2'">Is {{lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} applicant</span>
|
||||
<span *ngIf="fk_pd_type != '3' && fk_pd_type != '2'"> Is Applicant </span>
|
||||
</mat-header-cell>
|
||||
<mat-cell *matCellDef="let details;let i = index;" [formGroupName]="i">
|
||||
|
||||
@ -100,12 +100,14 @@ export class GeneralInfoComponent implements OnInit {
|
||||
public filteredBusinessEntityTypeList: ReplaySubject<any> = new ReplaySubject<any>(1);
|
||||
public filteredRelationShipList: ReplaySubject<any> = new ReplaySubject<any>(1);
|
||||
public filteredCompanyRelationShipList: ReplaySubject<any> = new ReplaySubject<any>(1);
|
||||
lender_short_name: any;
|
||||
|
||||
/********************** Declaration Section Ends Here *****************/
|
||||
|
||||
/** Constructor Section */
|
||||
constructor(notifier: NotifierService, private _fb: FormBuilder, private _pd: PdTrigerService, private dialog: MatDialog, @Inject(MAT_DIALOG_DATA) public pd_all_details: any, private dialogRef: MatDialogRef<GeneralInfoComponent>, private titleCase: TitleCasePipe, private imageRef: MatDialogRef<ImageCropComponent>) {
|
||||
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
||||
this.lender_short_name = this.pd_all_details.pdmaster_details.lender_short_name;
|
||||
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
|
||||
this.notifier = notifier;
|
||||
this.form_id = 18;
|
||||
@ -643,7 +645,7 @@ export class GeneralInfoComponent implements OnInit {
|
||||
|
||||
addMoreIndividuals() {
|
||||
const dialogRef = this.dialog.open(OtherApplicantDetailsComponent, {
|
||||
data: {'pd_id':this.pdid,},
|
||||
data: {'pd_id':this.pdid,lender_short_name:this.lender_short_name},
|
||||
width: '40%',
|
||||
disableClose: true
|
||||
});
|
||||
@ -674,7 +676,7 @@ export class GeneralInfoComponent implements OnInit {
|
||||
editIndividuals(value,index){
|
||||
//console.log(value);
|
||||
const dialogRef = this.dialog.open(OtherApplicantDetailsComponent, {
|
||||
data: {'pd_id':this.pdid,edit_data:true,previous_value:value.value},
|
||||
data: {'pd_id':this.pdid,edit_data:true,previous_value:value.value,lender_short_name:this.lender_short_name},
|
||||
width: '40%',
|
||||
disableClose: true
|
||||
});
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<div style="position:sticky;top:0;z-index: 99;">
|
||||
<div >
|
||||
<h2 mat-dialog-title class="paragraph_change">
|
||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||
|
||||
@ -20,6 +20,7 @@
|
||||
</div>
|
||||
<!-- <mat-dialog-content> -->
|
||||
<!-- <input type="file" accept="image/*" capture="environment"> -->
|
||||
<mat-dialog-content style="border-bottom: 2px solid #e2412f8f;max-height: 80vh !important;">
|
||||
<mat-card>
|
||||
<div fxLayout="row">
|
||||
<span fxLayout="column" fxFlex="85" fxFlex.xs = "70" fxLayoutAlign="flex-start" >
|
||||
@ -35,7 +36,7 @@
|
||||
</div> -->
|
||||
</div>
|
||||
<!-- </span> -->
|
||||
<mat-card-content class="scroll">
|
||||
<mat-card-content >
|
||||
<div fxLayout="row wrap" fxLayoutAlign="start stretch" fxLayoutAlign.xs="space-between stretch" fxLayoutGap="25px" fxLayoutGap.xs="15px" style="flex-wrap: wrap">
|
||||
<!-- {{records.img_data | json}} -->
|
||||
<div *ngFor="let val of imageData;let i = index" [ngStyle]="{'flex-basis': val.is_multiple == 1 ? '100%' : ''}" >
|
||||
@ -165,17 +166,18 @@
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</mat-dialog-content>
|
||||
<!-- </mat-dialog-content> -->
|
||||
<!-- <mat-dialog-actions>
|
||||
hi
|
||||
</mat-dialog-actions> -->
|
||||
<div style="position:sticky;background-color:black;float: right;bottom: 0;border:2px solid red;padding: 14px;color: white;border-radius: 10px" *ngIf="imgReCaptureBucket.length > 0">
|
||||
<!-- <div style="position:sticky;background-color:black;float: right;bottom: 0;border:2px solid red;padding: 14px;color: white;border-radius: 10px" *ngIf="imgReCaptureBucket.length > 0">
|
||||
<div fxLayout="row" fxLayoutGap="20px" fxLayoutGap.xs = "5px" style="max-height: 35px">
|
||||
<span style="font-weight:bold">Total Re-capturing Images :
|
||||
<span id="num_count">{{imgReCaptureBucket.length}}</span></span>
|
||||
<button mat-raised-button (click)="submitQcImages()"><mat-icon>done_all</mat-icon> Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
|
||||
<!-- <input type="file" id="input-file" name="file" accept="image/*" capture="user"> -->
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
|
||||
::ng-deep
|
||||
.cus-images > mat-card-content {
|
||||
overflow-y: scroll !important;
|
||||
}
|
||||
// ::ng-deep
|
||||
// .cus-images > mat-card-content {
|
||||
// overflow-y: scroll !important;
|
||||
// }
|
||||
|
||||
.scroll{
|
||||
overflow-y: scroll !important;
|
||||
overflow-y:auto;
|
||||
// .scroll{
|
||||
// overflow-y: scroll !important;
|
||||
// overflow-y:auto;
|
||||
|
||||
}
|
||||
// }
|
||||
.paragraph_change {
|
||||
color: #fff !important;
|
||||
background-color: #e00201 !important;
|
||||
|
||||
@ -23,7 +23,8 @@
|
||||
<mat-card>
|
||||
<mat-card-content class="matcard">
|
||||
<mat-form-field style="width: 64%">
|
||||
<input matInput placeholder="Loan Amount Applied for ? " formControlName="loan_amount"
|
||||
<mat-label>{{lenderShortName == 'CFPL' ? 'Facility' :'Loan'}} Amount Applied for ?</mat-label>
|
||||
<input matInput placeholder="Enter the amount" formControlName="loan_amount"
|
||||
OnlyNumber type="text" (change)="loanCalc()"
|
||||
autocomplete="off">
|
||||
|
||||
@ -32,7 +33,7 @@
|
||||
{{loanAmtInWords}} Only</mat-hint> -->
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 28%">
|
||||
<mat-label>Loan Tenure applied for?</mat-label>
|
||||
<mat-label>{{lenderShortName == 'CFPL' ? 'Facility' :'Loan'}} Tenure applied for?</mat-label>
|
||||
<input matInput placeholder="No of months (Eg. 6)" formControlName="loan_tenure"
|
||||
OnlyNumber type="text" autocomplete="off">
|
||||
</mat-form-field>
|
||||
@ -166,7 +167,7 @@
|
||||
</span>
|
||||
|
||||
|
||||
<mat-form-field style="width: 64%" *ngIf="lenderShortName != 'CLIX' && lenderShortName != 'MWISE' && lenderShortName != 'UDAAN' || prod_catagory == 'LFMP'">
|
||||
<mat-form-field style="width: 64%" *ngIf="lenderShortName != 'CLIX' && lenderShortName != 'MWISE' && lenderShortName != 'UDAAN' && lenderShortName != 'CFPL' || 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 != ''">{{"₹"}} {{ loanDetailsForm.controls['emi_level'].value | numberToWords }} Only</mat-hint>
|
||||
|
||||
@ -130,6 +130,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.lenderShortName == 'CFPL') {
|
||||
this.pageTitle = 'Facility & Anchor Details'
|
||||
}
|
||||
|
||||
if (this.prod_catagory == 'PL' || this.prod_catagory == 'BL' || this.prod_catagory == 'LAP' || this.prod_catagory == 'LFMP') {
|
||||
this.isContribution = true;
|
||||
}
|
||||
|
||||
@ -26,7 +26,8 @@
|
||||
<!-- <mat-card-title></mat-card-title> -->
|
||||
<mat-card-content>
|
||||
<mat-form-field style="width:45% !important;">
|
||||
<mat-select (selectionChange)="selectedLoanChanges($event)" placeholder="Other Income of Loan Applicants"
|
||||
<mat-label>Other Income of {{lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} Applicants</mat-label>
|
||||
<mat-select (selectionChange)="selectedLoanChanges($event)"
|
||||
formControlName="other_income">
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option value="Yes">Yes</mat-option>
|
||||
|
||||
@ -63,6 +63,7 @@ export class OtherIncomeComponent implements OnInit {
|
||||
isIncomeEarnedBy: any = [];
|
||||
image_doc_params: { pdid: string; form_id: number; company_id: string; };
|
||||
addressList: any = [];
|
||||
lender_short_name: any;
|
||||
// stringArr = [];
|
||||
constructor(notifier: NotifierService,
|
||||
private fb: FormBuilder,
|
||||
@ -74,6 +75,7 @@ export class OtherIncomeComponent implements OnInit {
|
||||
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
|
||||
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
|
||||
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
||||
this.lender_short_name = this.pd_all_details.pdmaster_details.lender_short_name;
|
||||
this.form_id = 9;
|
||||
this.rental_form_id = 17;
|
||||
this.notifier = notifier;
|
||||
|
||||
@ -133,7 +133,7 @@
|
||||
|
||||
<!-- start owner of the property -->
|
||||
<mat-form-field style="width:100%" appearance="outline">
|
||||
<mat-label>Name of the Owner/Owners of the Let out Property as per Loan Applicants</mat-label>
|
||||
<mat-label>Name of the Owner/Owners of the Let out Property as per {{lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} Applicants</mat-label>
|
||||
<mat-select placeholder="Name"
|
||||
formControlName="property_owner" [compareWith]="compareObjects" multiple required>
|
||||
<mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName">
|
||||
@ -148,7 +148,7 @@
|
||||
<input matInput autocomplete="off" placeholder="" formControlName="property_owner_other" required>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width:35%" appearance="outline" *ngIf="_rentalForm.controls['property_owner_other_relationship']">
|
||||
<mat-label>Relation of Owner to Loan Applicant</mat-label>
|
||||
<mat-label>Relation of Owner to {{lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} Applicant</mat-label>
|
||||
<mat-select placeholder="" formControlName="property_owner_other_relationship" [compareWith]="compareObjects" required>
|
||||
<mat-optgroup *ngFor="let rGroup of relationShipList" [label]="rGroup.groupName">
|
||||
<!-- <mat-option>Select</mat-option> -->
|
||||
@ -190,7 +190,7 @@
|
||||
|
||||
<!-- start nature of ther property -->
|
||||
<mat-form-field style="width:67%" appearance="outline">
|
||||
<mat-label>Nature of Let Out Property as per Loan Applicant</mat-label>
|
||||
<mat-label>Nature of Let Out Property as per {{lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} Applicant</mat-label>
|
||||
<mat-select placeholder=""
|
||||
formControlName="nature_property" [compareWith]="compareSingleObjects" required>
|
||||
<mat-option *ngFor="let property of propertyNature" [value]="property">
|
||||
@ -205,7 +205,7 @@
|
||||
<!-- end -->
|
||||
<!-- start type of units -->
|
||||
<mat-form-field style="width:67%" appearance="outline">
|
||||
<mat-label>Type of Units as per Loan Applicants</mat-label>
|
||||
<mat-label>Type of Units as per {{lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} Applicants</mat-label>
|
||||
<mat-select placeholder=""
|
||||
formControlName="unit_type" [compareWith]="compareObjects" required>
|
||||
<mat-optgroup *ngFor="let ugroup of unitTypeList" [label]="ugroup.groupName" [disabled]="_rentalForm.value.nature_property.id>1 && _rentalForm.value.nature_property.id!=ugroup.groupID">
|
||||
@ -363,13 +363,13 @@
|
||||
<!-- end tenant/lessees-->
|
||||
<!--start payment -->
|
||||
<mat-form-field style="width:46%" appearance="outline">
|
||||
<mat-label>Monthly Rent Amount as per Loan Applicant</mat-label>
|
||||
<mat-label>Monthly Rent Amount as per {{lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} Applicant</mat-label>
|
||||
<input matInput OnlyNumber autocomplete="off" placeholder="" formControlName="monthly_rent_amount" required>
|
||||
<!-- (keyup)="inWords($event,1)" -->
|
||||
<mat-hint align="start" style="font-size:90%" *ngIf="units.value.monthly_rent_amount != ''">{{"₹"}} {{units.value.monthly_rent_amount | numberToWords}} Only</mat-hint>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width:46%" appearance="outline">
|
||||
<mat-label>Mode of Payment of Rent as per Loan Applicant</mat-label>
|
||||
<mat-label>Mode of Payment of Rent as per {{lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} Applicant</mat-label>
|
||||
<mat-select placeholder=""
|
||||
formControlName="payment_mode" [compareWith]="compareSingleObjects" (selectionChange)="generatePaymentOptions(units.value,u,1)" required>
|
||||
<mat-option *ngFor="let payment of paymentOptions" [value]="payment">
|
||||
@ -400,7 +400,7 @@
|
||||
<textarea matInput placeholder="" formControlName="payment_received_reason" required></textarea>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width:100%" appearance="outline">
|
||||
<mat-label>Securtity Deposit amount as per Loan Applicant</mat-label>
|
||||
<mat-label>Securtity Deposit amount as per {{lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} Applicant</mat-label>
|
||||
<input matInput OnlyNumber autocomplete="off" placeholder="" formControlName="securtity_deposit_amount" required>
|
||||
<mat-hint align="start" style="font-size:90%" *ngIf="units.value.securtity_deposit_amount != ''">{{"₹"}} {{units.value.securtity_deposit_amount | numberToWords}} Only</mat-hint>
|
||||
</mat-form-field>
|
||||
@ -521,7 +521,7 @@
|
||||
<input matInput autocomplete="off" placeholder="" formControlName="agreement_property_owner_other" required>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width:35%" appearance="outline" *ngIf="units.controls['agreement_property_owner_other_relationship']">
|
||||
<mat-label>Relation of Owner to Loan Applicant</mat-label>
|
||||
<mat-label>Relation of Owner to {{lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} Applicant</mat-label>
|
||||
<mat-select placeholder="" formControlName="agreement_property_owner_other_relationship" [compareWith]="compareObjects" required>
|
||||
<mat-optgroup *ngFor="let rGroup of relationShipList" [label]="rGroup.groupName">
|
||||
<!-- <mat-option>Select</mat-option> -->
|
||||
@ -588,7 +588,7 @@
|
||||
<input matInput autocomplete="off" placeholder="" formControlName="property_owner_other_per_met" required>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width:35%" appearance="outline" *ngIf="units.controls['property_owner_other_relationship_per_met']">
|
||||
<mat-label>Relation of Owner to Loan Applicant</mat-label>
|
||||
<mat-label>Relation of Owner to {{lender_short_name == 'CFPL' ? 'Facility' :'Loan'}} Applicant</mat-label>
|
||||
<mat-select placeholder="" formControlName="property_owner_other_relationship_per_met" [compareWith]="compareObjects" required>
|
||||
<mat-optgroup *ngFor="let rGroup of relationShipList" [label]="rGroup.groupName">
|
||||
<!-- <mat-option>Select</mat-option> -->
|
||||
|
||||
@ -78,12 +78,14 @@ export class ManageRentalVerificationComponent implements OnInit {
|
||||
cityData: any = [];
|
||||
pincodeData: any = [];
|
||||
addressList: any = [];
|
||||
lender_short_name: any;
|
||||
|
||||
constructor(notifier: NotifierService, private _pd: PdTrigerService ,private _fb: FormBuilder, @Inject(MAT_DIALOG_DATA) public data: any,private dialogRef: MatDialogRef<ManageRentalVerificationComponent>,private dialog: MatDialog) {
|
||||
|
||||
this.pageTitle = this.data.manage_status==1 ? 'Add RI Details' : 'Update RI Details';
|
||||
this.parent_pdid = this.data.parentData.pdmaster_details.parent_pd_id;
|
||||
this.pdid = this.data.parentData.pdmaster_details.pd_id;
|
||||
this.lender_short_name = this.data.parentData.pdmaster_details.lender_short_name
|
||||
this.notifier = notifier;
|
||||
this.form_id = 17;
|
||||
this.rental_count_id = this.data.existing_rental_count_id;
|
||||
@ -1000,7 +1002,7 @@ export class ManageRentalVerificationComponent implements OnInit {
|
||||
TempArray2[index] = data.hasOwnProperty('paid_monthly_rent_per_met') ? data.paid_monthly_rent_per_met : 0 ;
|
||||
TenantRentAmt = TempArray2.reduce((sum, val) => sum + +val, 0);
|
||||
})
|
||||
textMessage = 'Monthly Rent as Per Loan Applicant = '+ApplicantRentAmt+'<br>';
|
||||
textMessage = 'Monthly Rent as Per '+ this.lender_short_name == 'CFPL' ? 'Facility' : 'Loan'+ ' Applicant = '+ApplicantRentAmt+'<br>';
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -62,7 +62,7 @@
|
||||
<div fxFlex="row wrap">
|
||||
<div fxFlex="100">
|
||||
<div fxFlex="40" align="left" style="color:#e00201;">
|
||||
Loan Amount
|
||||
{{master.lender_short_name == 'CFPL' ? 'Facility' : 'Loan'}} Amount
|
||||
</div>
|
||||
<div fxFlex="60" align="right" *ngIf="master.loan_amount">
|
||||
<i class="fa-1x fa fa-rupee"></i><small style="margin-left: 2%; font-size: inherit">{{master.loan_amount}}</small><br>
|
||||
|
||||
@ -5,7 +5,9 @@ import { Pipe, PipeTransform } from '@angular/core';
|
||||
})
|
||||
export class NumberToWordsPipe implements PipeTransform {
|
||||
transform(price: any): any{
|
||||
|
||||
if(price == null || price == undefined || price == '') {
|
||||
return;
|
||||
}
|
||||
price = price.toString();
|
||||
let atemp = price.split(".");
|
||||
let amount = atemp[0];
|
||||
|
||||
@ -63,7 +63,7 @@
|
||||
<div fxFlex="row">
|
||||
<div fxFlex="100">
|
||||
<div fxFlex="50" align="left" style="color:#e00201;">
|
||||
Loan Amount
|
||||
{{master.lender_short_name == 'CFPL' ? 'Facility' : 'Loan'}} Amount
|
||||
</div>
|
||||
<div fxFlex="50" align="right" *ngIf="master.loan_amount">
|
||||
<i class="fa-1x fa fa-rupee"></i><small style="margin-left: 2%; font-size: inherit">{{master.loan_amount}}</small>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user