changes:ps
This commit is contained in:
parent
455c1ba242
commit
2bd5d78f5e
@ -95,7 +95,7 @@ export class AddressComponent implements OnInit {
|
|||||||
private dialogRef: MatDialogRef<AddressComponent>,
|
private dialogRef: MatDialogRef<AddressComponent>,
|
||||||
@Inject(MAT_DIALOG_DATA) public pd_all_details: any)
|
@Inject(MAT_DIALOG_DATA) public pd_all_details: any)
|
||||||
{
|
{
|
||||||
console.log(this.pd_all_details);
|
// console.log(this.pd_all_details);
|
||||||
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
||||||
this.form_id = 5;
|
this.form_id = 5;
|
||||||
//commented
|
//commented
|
||||||
|
|||||||
@ -1430,7 +1430,7 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
let validationFlag : number = 0;
|
let validationFlag : number = 0;
|
||||||
// let shareHoldValidationFlag : number = 0;
|
// let shareHoldValidationFlag : number = 0;
|
||||||
// console.log(records.partners.length);
|
// console.log(records.partners.length);
|
||||||
console.log(records.partners);
|
// console.log(records.partners);
|
||||||
|
|
||||||
if(records.partners.length > 0){
|
if(records.partners.length > 0){
|
||||||
let total = records.partners.map(shares => shares.shareholding).reduce((a, b) => a + +b, 0);
|
let total = records.partners.map(shares => shares.shareholding).reduce((a, b) => a + +b, 0);
|
||||||
@ -1696,8 +1696,8 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
CheckExport(e,val){
|
CheckExport(e,val){
|
||||||
console.log(e);
|
// console.log(e);
|
||||||
console.log(val);
|
// console.log(val);
|
||||||
let flag: number = 0;
|
let flag: number = 0;
|
||||||
if(val == 1){
|
if(val == 1){
|
||||||
e != "Within India" ?
|
e != "Within India" ?
|
||||||
|
|||||||
@ -154,13 +154,13 @@ export class CurrentLoanComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log('else part',value.status);
|
// console.log('else part',value.status);
|
||||||
this._pd.getAssetsWithLoanFromBusiness(this.pdid).subscribe(data=>{
|
this._pd.getAssetsWithLoanFromBusiness(this.pdid).subscribe(data=>{
|
||||||
// console.log(data);
|
// console.log(data);
|
||||||
|
|
||||||
if(data.dataStatus == true){
|
if(data.dataStatus == true){
|
||||||
|
|
||||||
console.log(data.record);
|
// console.log(data.record);
|
||||||
|
|
||||||
let AssetData = data.record;
|
let AssetData = data.record;
|
||||||
|
|
||||||
@ -273,7 +273,7 @@ export class CurrentLoanComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
console.log('else,else.part');
|
// console.log('else,else.part');
|
||||||
control.push(this.createLoanDetail(null));
|
control.push(this.createLoanDetail(null));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -189,7 +189,7 @@ export class EmploymentInfoComponent implements OnInit {
|
|||||||
records.bonus_type_other = this.employmentForm.controls['bonus_type_other'].value;
|
records.bonus_type_other = this.employmentForm.controls['bonus_type_other'].value;
|
||||||
records.any_delays = this.employmentForm.controls['any_delays'].value;
|
records.any_delays = this.employmentForm.controls['any_delays'].value;
|
||||||
records.employment_remarks = this.employmentForm.controls['employment_remarks'].value;
|
records.employment_remarks = this.employmentForm.controls['employment_remarks'].value;
|
||||||
console.log('data', records);
|
// console.log('data', records);
|
||||||
this._pd.saveForm(records).subscribe(data => {
|
this._pd.saveForm(records).subscribe(data => {
|
||||||
// console.log('data', data);
|
// console.log('data', data);
|
||||||
// this.notifier.notify('success', 'Saved Successfully.');
|
// this.notifier.notify('success', 'Saved Successfully.');
|
||||||
|
|||||||
@ -346,7 +346,7 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
private _pd: PdTrigerService,
|
private _pd: PdTrigerService,
|
||||||
private dialogRef: MatDialogRef<FamilyDetailsComponent>,
|
private dialogRef: MatDialogRef<FamilyDetailsComponent>,
|
||||||
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
|
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
|
||||||
console.log(pd_all_details);
|
// console.log(pd_all_details);
|
||||||
this.selectPerson = this.pd_all_details.pdapplicants_detials;
|
this.selectPerson = this.pd_all_details.pdapplicants_detials;
|
||||||
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
||||||
this.form_id = 6;
|
this.form_id = 6;
|
||||||
@ -369,7 +369,7 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
|
|
||||||
this._pd.getFamilyDetails(this.pdid).subscribe(data=>{
|
this._pd.getFamilyDetails(this.pdid).subscribe(data=>{
|
||||||
console.clear();
|
console.clear();
|
||||||
console.log('data',data);
|
// console.log('data',data);
|
||||||
if(data.dataStatus == true){
|
if(data.dataStatus == true){
|
||||||
|
|
||||||
let Temparr : any = [];
|
let Temparr : any = [];
|
||||||
@ -411,7 +411,7 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
Temparr.push(datas);
|
Temparr.push(datas);
|
||||||
}
|
}
|
||||||
this.apiFamilyMembers = [].concat.apply([],Temparr);
|
this.apiFamilyMembers = [].concat.apply([],Temparr);
|
||||||
console.log(this.apiFamilyMembers);
|
// console.log(this.apiFamilyMembers);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -598,7 +598,7 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
control.push(formData);
|
control.push(formData);
|
||||||
let inx = control.length - 1;
|
let inx = control.length - 1;
|
||||||
this.addFamilyMemberDetailsWithData(inx, val.family_members_details);
|
this.addFamilyMemberDetailsWithData(inx, val.family_members_details);
|
||||||
console.log(control);
|
// console.log(control);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -649,7 +649,7 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
this.FamilyMemberAsLabel[inx] = this.selectPerson.filter(item => item.pd_co_applicant_id == e)[0].applicant_name;
|
this.FamilyMemberAsLabel[inx] = this.selectPerson.filter(item => item.pd_co_applicant_id == e)[0].applicant_name;
|
||||||
|
|
||||||
const control = <FormArray>this.familyForm.controls['family_details']['controls'][inx].controls.family_members_details;
|
const control = <FormArray>this.familyForm.controls['family_details']['controls'][inx].controls.family_members_details;
|
||||||
console.log(control.length);
|
// console.log(control.length);
|
||||||
|
|
||||||
let newControlLength: number;
|
let newControlLength: number;
|
||||||
let oldControlLength: number = control.length;
|
let oldControlLength: number = control.length;
|
||||||
@ -662,8 +662,8 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
// console.log('selectedPerson data',data);
|
// console.log('selectedPerson data',data);
|
||||||
|
|
||||||
if(data.length > 0){
|
if(data.length > 0){
|
||||||
console.log(control.length);
|
// console.log(control.length);
|
||||||
console.log(data.length);
|
// console.log(data.length);
|
||||||
|
|
||||||
newControlLength = data.length;
|
newControlLength = data.length;
|
||||||
let index: number = 0;
|
let index: number = 0;
|
||||||
|
|||||||
@ -142,7 +142,7 @@ export class FinalRemarksComponent implements OnInit {
|
|||||||
|
|
||||||
//To Remove The "Null" With Key also
|
//To Remove The "Null" With Key also
|
||||||
Object.keys(answerFormValues).forEach((key) => (answerFormValues[key] == null) && delete answerFormValues[key]);
|
Object.keys(answerFormValues).forEach((key) => (answerFormValues[key] == null) && delete answerFormValues[key]);
|
||||||
console.log(JSON.stringify(answerFormValues));
|
// console.log(JSON.stringify(answerFormValues));
|
||||||
//Add BRANCH data with help Service File
|
//Add BRANCH data with help Service File
|
||||||
this.pdTrigerService.savePDFormDetailsWithID(answerFormValues).subscribe(
|
this.pdTrigerService.savePDFormDetailsWithID(answerFormValues).subscribe(
|
||||||
dataresult => {
|
dataresult => {
|
||||||
|
|||||||
@ -309,7 +309,7 @@ export class FinancialInfoComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selectedProfitOrLossType(e,detail){
|
selectedProfitOrLossType(e,detail){
|
||||||
console.log(e);
|
// console.log(e);
|
||||||
if(e.value == 1){
|
if(e.value == 1){
|
||||||
detail.controls.financial_net_loss.setValue('');
|
detail.controls.financial_net_loss.setValue('');
|
||||||
detail.controls.financial_margin_of_loss.setValue('');
|
detail.controls.financial_margin_of_loss.setValue('');
|
||||||
@ -445,8 +445,8 @@ export class FinancialInfoComponent implements OnInit {
|
|||||||
let profit = detail.value.financial_net_profit;
|
let profit = detail.value.financial_net_profit;
|
||||||
let loss = detail.value.financial_net_loss;
|
let loss = detail.value.financial_net_loss;
|
||||||
let salary = detail.value.financial_annual_sale;
|
let salary = detail.value.financial_annual_sale;
|
||||||
console.log('current profit',profit);
|
// console.log('current profit',profit);
|
||||||
console.log('current loss',loss);
|
// console.log('current loss',loss);
|
||||||
if ( (profit != '' || loss != '') && index != 0) {
|
if ( (profit != '' || loss != '') && index != 0) {
|
||||||
if(+profit > +salary){
|
if(+profit > +salary){
|
||||||
|
|
||||||
@ -459,13 +459,13 @@ export class FinancialInfoComponent implements OnInit {
|
|||||||
let prev_profit = array.value[index - 1].financial_net_profit != '' ? array.value[index - 1].financial_net_profit : 0;
|
let prev_profit = array.value[index - 1].financial_net_profit != '' ? array.value[index - 1].financial_net_profit : 0;
|
||||||
let prev_loss = array.value[index - 1].financial_net_loss !='' ? array.value[index - 1].financial_net_loss : 0 ;
|
let prev_loss = array.value[index - 1].financial_net_loss !='' ? array.value[index - 1].financial_net_loss : 0 ;
|
||||||
|
|
||||||
console.log('prev_profit',prev_profit);
|
// console.log('prev_profit',prev_profit);
|
||||||
console.log('prev_loss',prev_loss);
|
// console.log('prev_loss',prev_loss);
|
||||||
|
|
||||||
loss = loss != 0 ? loss * (-1) : loss;
|
loss = loss != 0 ? loss * (-1) : loss;
|
||||||
console.log('-1',loss);
|
// console.log('-1',loss);
|
||||||
prev_loss = prev_loss != 0 ? prev_loss * (-1) : prev_loss ;
|
prev_loss = prev_loss != 0 ? prev_loss * (-1) : prev_loss ;
|
||||||
console.log('prev_loss',prev_loss);
|
// console.log('prev_loss',prev_loss);
|
||||||
|
|
||||||
let variation = (((profit != '' ? profit : loss ) - (prev_profit != '' ? prev_profit : prev_loss ))/ (prev_profit != '' ? Math.abs(prev_profit) : Math.abs(prev_loss))) * 100;
|
let variation = (((profit != '' ? profit : loss ) - (prev_profit != '' ? prev_profit : prev_loss ))/ (prev_profit != '' ? Math.abs(prev_profit) : Math.abs(prev_loss))) * 100;
|
||||||
|
|
||||||
|
|||||||
@ -127,7 +127,7 @@ export class LoanDetailsComponent implements OnInit {
|
|||||||
};
|
};
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
console.clear();
|
console.clear();
|
||||||
console.log('this.applicants',this.applicants);
|
// console.log('this.applicants',this.applicants);
|
||||||
this.initloanDetailsForm();
|
this.initloanDetailsForm();
|
||||||
this.getM_EndUseofLoad();
|
this.getM_EndUseofLoad();
|
||||||
this.getM_EndUseForLoan(this.pdid);
|
this.getM_EndUseForLoan(this.pdid);
|
||||||
@ -354,30 +354,30 @@ getM_sourceofamount() {
|
|||||||
let that = this;
|
let that = this;
|
||||||
this.m_mortageTypeProperty = data.records.filter(
|
this.m_mortageTypeProperty = data.records.filter(
|
||||||
function(data){
|
function(data){
|
||||||
console.log(data);
|
// console.log(data);
|
||||||
if(that.productAbbr != "LAP"){
|
if(that.productAbbr != "LAP"){
|
||||||
console.log(that.productAbbr);
|
// console.log(that.productAbbr);
|
||||||
if(data.group_name == that.productAbbr && data.isactive==1){
|
if(data.group_name == that.productAbbr && data.isactive==1){
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(that.productAbbr == "LAP"){
|
else if(that.productAbbr == "LAP"){
|
||||||
console.log(that.productAbbr);
|
// console.log(that.productAbbr);
|
||||||
console.log(that.subProductName);
|
// console.log(that.subProductName);
|
||||||
console.log(data.sub_group_name);
|
// console.log(data.sub_group_name);
|
||||||
if(data.group_name == that.productAbbr && data.sub_group_name == that.subProductName && data.isactive==1){
|
if(data.group_name == that.productAbbr && data.sub_group_name == that.subProductName && data.isactive==1){
|
||||||
console.log('lap with subproduct',data);
|
// console.log('lap with subproduct',data);
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
else if(data.group_name == that.productAbbr && data.sub_group_name != null && data.isactive==1) {
|
else if(data.group_name == that.productAbbr && data.sub_group_name != null && data.isactive==1) {
|
||||||
console.log('lap with subproduct null',data);
|
// console.log('lap with subproduct null',data);
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.m_mortageTypeProperty
|
this.m_mortageTypeProperty
|
||||||
// mortage_property_id">{{ typeprop.property_name
|
// mortage_property_id">{{ typeprop.property_name
|
||||||
console.log(this.m_mortageTypeProperty);
|
// console.log(this.m_mortageTypeProperty);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user