SMC changes

This commit is contained in:
sriram-at-840620226347 2019-11-14 11:28:59 +05:30
parent 357e835325
commit a03bbf2ca6
22 changed files with 164 additions and 87 deletions

View File

@ -71,6 +71,7 @@ export class AddressComponent implements OnInit {
stateDataList: any = [];
cityDataList: any = [];
pincodeDataList: any = [];
product_abbr: any;
/**Constructor of the class */
constructor(private el: ElementRef, notifier: NotifierService,
@ -92,6 +93,8 @@ export class AddressComponent 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.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.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
let CSAbbrSearch = this.pd_all_details.pdmaster_details.customer_segment_abbr.search("-");
@ -179,7 +182,7 @@ export class AddressComponent implements OnInit {
}
}
if(this.lender_short_name != 'CLIX' && this.lender_short_name != 'MONEYWISE') {
if(this.lender_short_name != 'CLIX' && this.product_abbr != 'BL') {
this.addressForm.controls.estimated_area.setValue(datas.estimated_area ? datas.estimated_area : '')
this.addressForm.controls.uom.setValue(datas.uom);
@ -222,7 +225,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.lender_short_name == 'MONEYWISE'){
if(this.lender_short_name == 'CLIX' || this.product_abbr == 'BL'){
this.addressForm.removeControl('estimated_area');
this.addressForm.removeControl('uom');
}
@ -532,7 +535,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.lender_short_name != 'MONEYWISE') {
if(this.lender_short_name != 'CLIX' && this.product_abbr != '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) {
@ -557,7 +560,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.lender_short_name != 'MONEYWISE') {
if(this.lender_short_name != 'CLIX' && this.product_abbr != '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) {
@ -735,7 +738,7 @@ export class AddressComponent implements OnInit {
this.addressForm.controls.locality_others.setValue(datas.locality_others);
}
if(this.lender_short_name != 'CLIX' && this.lender_short_name != 'MONEYWISE'){
if(this.lender_short_name != 'CLIX' && this.product_abbr != '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);
@ -806,7 +809,7 @@ export class AddressComponent implements OnInit {
this.addressForm.controls.locality_others.setValue(datas.locality_others);
}
if(this.lender_short_name != 'CLIX' && this.lender_short_name != 'MONEYWISE'){
if(this.lender_short_name != 'CLIX' && this.product_abbr != 'BL'){
this.addressForm.controls.estimated_area.setValue(datas.estimated_area);
this.addressForm.controls.uom.setValue(datas.uom);
this.setOthers(datas.uom, '', 5);

View File

@ -74,13 +74,13 @@
<input matInput placeholder="Address of the Property" formControlName="address_of_the_property"
autocomplete="off">
</mat-form-field>
<mat-form-field style="width:45%" *ngIf="detail.get('property_type').value != '' && (lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE')">
<mat-form-field style="width:45%" *ngIf="detail.get('property_type').value != '' && (lender_short_name != 'CLIX' && lender_short_name != 'SMC')">
<input matInput placeholder="Description of the Property" formControlName="describe_of_the_property_asset"
autocomplete="off">
</mat-form-field>
</div>
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC' || product_abbr == '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 !== 'MONEYWISE') && 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 !== 'SMC' || product_abbr === 'LFMP') && sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3 || sup.get('assets_mode').value == 1 ">
<mat-form-field style="width:45%">
@ -386,7 +386,7 @@
</mat-form-field>
</span>
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC' || product_abbr == '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

@ -73,6 +73,7 @@ export class AssetsInfoComponent implements OnInit {
lender_short_name: any;
image_doc_params: { pdid: string; form_id: any; company_id: string; };
form_id: string;
product_abbr: any;
constructor(
notifier: NotifierService,
private _formBuilder: FormBuilder,
@ -91,6 +92,7 @@ export class AssetsInfoComponent 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.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
this.product_abbr = this.pd_all_details.pdmaster_details.product_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:''}
}

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>
<mat-form-field style="width:45%" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC' || product_abbr == 'LFMP'">
<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"
minlength="1" maxlength="2" OnlyNumber type="text"
@ -180,9 +180,10 @@
<!-- <mat-error> Invalid year format</mat-error> -->
</mat-form-field>
</div>
</div>
<span *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<span *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC' || product_abbr === 'LFMP'">
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
<mat-form-field style="width:95%"
*ngIf="(itemrow.get('business_ownership_type').value == 'owned')">
@ -415,8 +416,8 @@
*ngIf="sup.controls['business_name_of_the_other_owner'].hasError('required')">Asset
Owned by is Required</mat-error>
</mat-form-field>
<mat-form-field style="width:45%" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC' || product_abbr === 'LFMP'">
<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" minlength="1" maxlength="2" OnlyNumber
@ -439,9 +440,10 @@
<!-- <mat-error> Invalid year format</mat-error> -->
</mat-form-field>
</div>
</div>
<span
*ngIf="(sup.get('business_assets_mode').value != '') && sup.get('business_ownership_type').value == 'owned' && (lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE')">
*ngIf="(sup.get('business_assets_mode').value != '') && sup.get('business_ownership_type').value == 'owned' && (lender_short_name != 'CLIX' && lender_short_name != 'SMC' || product_abbr === '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

@ -68,6 +68,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
lender_short_name: any;
image_doc_params: { pdid: string; form_id: any; company_id: any; };
form_id: string;
product_abbr: any;
/**Constructor of the class */
constructor(
notifier: NotifierService,
@ -80,6 +81,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
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.applicants = this.pd_all_details.pdapplicants_detials;
this.applicants = this.applicants.filter(appt => appt.applicant_type != 2)

View File

@ -47,7 +47,9 @@ export class BusinessInfoGroupComponent 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.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);
}
@ -197,7 +199,7 @@ export class BusinessInfoGroupComponent implements OnInit {
this.getCompanyListForBusiness();
});
}else
if((this.lender_short_name == 'CLIX' || this.product_abbr == 'LAEP') && details.form_id==23){
if((this.lender_short_name == 'CLIX' || this.product_abbr == 'LAEP' || (this.product_abbr == 'LFMP' && this.lender_short_name == 'SMC')) && details.form_id==23){
const dialogRef = this.dialog.open(FuturePlansAndBusinessEnvironmentComponent, {
data: this.pd_all_details,
maxWidth: '100vw',

View File

@ -1577,7 +1577,7 @@
type="number" formControlName="employees_permanent" required>
<mat-error *ngIf="businessForm.controls['employees_permanent'].hasError('required')">Permanent Required</mat-error>
</mat-form-field>
<mat-form-field *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<mat-form-field *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC'">
<input matInput placeholder="Temporary" (change)="checkTotalEmployee(businessForm)"
type="number" formControlName="employees_temporary" >
<mat-error *ngIf="businessForm.controls['employees_temporary'].hasError('required')">Temporary Required</mat-error>

View File

@ -130,7 +130,9 @@ export class BusinessInfoComponent 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.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);
console.log("com",this.company_id)
this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:this.company_id}
}
@ -258,7 +260,7 @@ export class BusinessInfoComponent implements OnInit {
//businessVal.designation = DesgnArray;
businessVal.partners = PartnrArray;
businessVal.documents = DocArray;
if(this.lender_short_name != 'CLIX' && this.lender_short_name != 'MONEYWISE'){
if(this.lender_short_name != 'CLIX'){
if (data.records.persons_with_relationships) {
let selectedFamilyMember = Object.keys(data.records.persons_with_relationships).map(function (key) {
return data.records.persons_with_relationships[key];
@ -394,12 +396,16 @@ 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.lender_short_name != 'MONEYWISE'){
if( !(this.lender_short_name == 'CLIX' && this.product_abbr == 'BL') && !(this.lender_short_name == 'SMC' && this.product_abbr == 'BL')){
console.log('###PAY');console.log(this.lender_short_name,this.product_abbr)
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)
}
selectedRetail.forEach((element, index) => {
this.CheckExport(element.area_of_sale, 'RActivity', index);
@ -461,7 +467,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.lender_short_name != 'MONEYWISE'){
if(!(this.lender_short_name == 'CLIX' && this.product_abbr == 'BL') && !(this.lender_short_name == 'SMC' && this.product_abbr == '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');
@ -530,7 +536,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.lender_short_name != 'MONEYWISE'){
if(!(this.lender_short_name == 'CLIX' && this.product_abbr == 'BL') && !(this.lender_short_name == 'SMC' && this.product_abbr == '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');
@ -657,7 +663,7 @@ export class BusinessInfoComponent implements OnInit {
this.product_abbr == 'LAEP' ? this.businessForm.addControl('fire_noc', new FormControl('', Validators.required)) : this.businessForm.removeControl('fire_noc');
if(this.lender_short_name != 'CLIX' && this.lender_short_name != 'MONEYWISE'){
if(this.lender_short_name != 'CLIX'){
// change relation with businees update dat sorce table
this.businessForm.controls['persons_with_relationships'].valueChanges.subscribe(val => {
let relationControl = <FormArray>this.businessForm.controls['persons_with_relationships'];
@ -719,7 +725,7 @@ export class BusinessInfoComponent implements OnInit {
service_provider_activity_details: this.fb.array([]),
// others_activity_details: this.fb.array([]),
});
if(this.lender_short_name == 'CLIX' || this.lender_short_name == 'MONEYWISE'){
if(this.lender_short_name == 'CLIX'){
this.businessForm.removeControl('persons_with_relationships');
}
}
@ -800,7 +806,7 @@ 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.lender_short_name != 'MONEYWISE'){
if(!(this.lender_short_name == 'CLIX' && this.product_abbr == 'BL') && !(this.lender_short_name == 'SMC' && this.product_abbr == '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) {

View File

@ -56,7 +56,7 @@
<input matInput placeholder="Client Name" formControlName="manufacturing_client_name">
</mat-form-field>
</div>
<div fxLayout="row nowrap" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div fxLayout="row nowrap" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC'">
<mat-form-field style="width: 15%">
<mat-select placeholder="Title" formControlName="person_title_name">
<mat-option>Select</mat-option>
@ -104,7 +104,7 @@
<mat-error>Enter Valid LandLine Number.</mat-error>
</mat-form-field>
</div>
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX'">
<mat-form-field style="width: 45%">
<!-- <mat-select placeholder="Payment Type" formControlName="manufacturing_payment_type">
<mat-option *ngFor="let pm of m_paymentModeType" [value]="pm.id">{{ pm.name }}</mat-option>
@ -140,11 +140,11 @@
type="number">
</mat-form-field>
</div>
<div fxLayout="row" *ngIf="lender_short_name == 'MONEYWISE'">
<div fxLayout="row" *ngIf="lender_short_name == 'SMC'">
<mat-form-field style="width: 100%">
<input matInput placeholder="Contribution to Total Turnover in %"
formControlName="manufacturing_contribution_total_turnover"
type="number" autocomplete="off" OnlyNumber type="text">
type="number" autocomplete="off" OnlyNumber type="text" maxlength="3" (blur)="onBlurMethod($event.target.value,items,1)">
</mat-form-field>
</div>
@ -203,7 +203,7 @@
<input matInput placeholder="Client Name" formControlName="trade_client_name">
</mat-form-field>
</div>
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC'">
<mat-form-field style="width: 15%">
<mat-select placeholder="Title" formControlName="person_title_name">
<mat-option>Select</mat-option>
@ -249,7 +249,7 @@
<mat-error>Enter Valid LandLine Number.</mat-error>
</mat-form-field>
</div>
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX'">
<mat-form-field style="width: 45%">
<!-- <mat-select placeholder="Payment Type" formControlName="trade_product_payment_type">
@ -287,11 +287,11 @@
type="number">
</mat-form-field>
</div>
<div fxLayout="row" *ngIf="lender_short_name == 'MONEYWISE'">
<div fxLayout="row" *ngIf="lender_short_name == 'SMC'">
<mat-form-field style="width: 100%">
<input matInput placeholder="Contribution to Total Turnover in %"
formControlName="trade_product_contribution_total_turnover"
type="number" autocomplete="off" OnlyNumber type="text">
type="number" autocomplete="off" OnlyNumber type="text" maxlength="3" (blur)="onBlurMethod($event.target.value,items,2)">
</mat-form-field>
</div>
@ -347,7 +347,7 @@
<input matInput placeholder="Client Name" formControlName="service_provider_client_name">
</mat-form-field>
</div>
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC'">
<!--<mat-form-field style="width: 100%">
<input matInput placeholder="Trade Product Name" formControlName="trade_product_name">
</mat-form-field>-->
@ -396,7 +396,7 @@
<mat-error>Enter Valid LandLine Number.</mat-error>
</mat-form-field>
</div>
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX'">
<mat-form-field style="width: 45%">
<!-- <mat-select placeholder="Payment Type" formControlName="service_provider_product_payment_type">
<mat-option *ngFor="let pm of m_paymentModeType" [value]="pm.id">{{ pm.name }}</mat-option>
@ -433,11 +433,11 @@
type="number">
</mat-form-field>
</div>
<div fxLayout="row" *ngIf="lender_short_name == 'MONEYWISE'">
<div fxLayout="row" *ngIf="lender_short_name == 'SMC'">
<mat-form-field style="width: 100%">
<input matInput placeholder="Contribution to Total Turnover in %"
formControlName="service_provider_contribution_total_turnover"
type="number" autocomplete="off" OnlyNumber type="text">
type="number" autocomplete="off" OnlyNumber type="text" maxlength="3" (blur)="onBlurMethod($event.target.value,items,3)">
</mat-form-field>
</div>

View File

@ -831,4 +831,29 @@ retriveFile(){
}
});
}*/
onBlurMethod(v,items,option) {
if(v >= 101){
// alert('Only 100% is limit');
this.notifier.notify('warning', 'Only 100% is limit');
if(option == 1){
items.controls['manufacturing_contribution_total_turnover'].setValue('');
}
if(option == 2){
items.controls['trade_product_contribution_total_turnover'].setValue('');
}
if(option == 3){
items.controls['service_provider_contribution_total_turnover'].setValue('');
}
}
// const charCode = (event.which) ? event.which : event.keyCode;
// console.log(charCode);
// if (charCode > 31 && (charCode < 48 || charCode > 57)) {
// return false;
// }
// return true;
}
}

View File

@ -134,7 +134,7 @@
</mat-form-field>
</div> -->
<div *ngIf="lender_short_name !== 'CLIX' && lender_short_name !== 'MONEYWISE'">
<div *ngIf="lender_short_name !== 'CLIX' && lender_short_name !== 'SMC' || product_abbr === '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">
@ -273,7 +273,7 @@
</mat-card-actions>
</div>
<div *ngIf="lender_short_name === 'CLIX' || lender_short_name === 'MONEYWISE'">
<div *ngIf="lender_short_name === 'CLIX' || lender_short_name === 'SMC' && product_abbr != 'LFMP'">
<mat-card>
<mat-card-header>
<mat-card-title>

View File

@ -67,6 +67,7 @@ export class FamilyDetailsComponent implements OnInit {
stateDataList: any = [];
cityDataList: any = [];
pincodeDataList: any = [];
product_abbr: any;
/** constructor Of the class */
constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute,
@ -81,6 +82,7 @@ export class FamilyDetailsComponent implements OnInit {
this.selectPerson = this.pd_all_details.pdapplicants_detials.filter(item => item.applicant_type != '2');
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.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

@ -147,10 +147,10 @@
<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 == 'MONEYWISE' || product_abbr == 'LAEP'">
<mat-card *ngIf="lender_short_name == 'CLIX' || lender_short_name == 'SMC' || product_abbr == 'LAEP'">
<mat-card-content>
<mat-card-subtitle *ngIf="lender_short_name == 'CLIX'">CLIX</mat-card-subtitle>
<mat-card-subtitle *ngIf="lender_short_name == 'MONEYWISE'">MONEYWISE</mat-card-subtitle>
<mat-card-subtitle *ngIf="lender_short_name == 'SMC'">SMC</mat-card-subtitle>
<mat-form-field style="width:94%;" *ngIf="_finalRemarkForm.controls['outlet_location'] && product_abbr == 'LAEP'">
<mat-select placeholder="Comment on Footfall in the market where the B2C outlet is located…" formControlName="outlet_location"
required>

View File

@ -100,7 +100,7 @@ export class FinalRemarksComponent implements OnInit {
final_form_remarks: ['']
});
if(this.lender_short_name == 'CLIX' || this.lender_short_name == 'MONEYWISE' || this.product_abbr == 'LAEP'){
if(this.lender_short_name == 'CLIX' || this.lender_short_name == 'SMC' || this.product_abbr == 'LAEP'){
this.product_abbr == '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(''));
@ -239,7 +239,7 @@ 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 == 'MONEYWISE' || this.product_abbr == 'LAEP'){
if(this.lender_short_name == 'CLIX' || this.lender_short_name == 'SMC' || this.product_abbr == 'LAEP'){
if(this.product_abbr == 'LAEP') {this._finalRemarkForm.controls.outlet_location.setValue(this.product_abbr == 'LAEP' ? data.records.outlet_location : ''); }
this._finalRemarkForm.controls.is_competition.setValue(data.records.is_competition);

View File

@ -397,7 +397,7 @@
{{AV_netProfitAmtInwords[i]}} Only </mat-hint> -->
</mat-form-field>
<mat-form-field style="width:54%" *ngIf="lender_short_name == 'CLIX' || lender_short_name == 'MONEYWISE' || product_abbr == 'LAEP'">
<mat-form-field style="width:54%" *ngIf="lender_short_name == 'CLIX' || lender_short_name == 'SMC' || product_abbr == '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;"}}
@ -486,7 +486,7 @@
</mat-card-content>
</div>
</div>
<div style="margin-left: 25px;" *ngIf="financialForm.value.is_financial_customer == 'no' && financialForm.controls['kuccha_records_shown'] && (customer_segment_abbr == 'SE-DI' && lender_short_name != 'CLIX') && (lender_short_name != 'MONEYWISE')">
<div style="margin-left: 25px;" *ngIf="financialForm.value.is_financial_customer == 'no' && financialForm.controls['kuccha_records_shown'] && (customer_segment_abbr == 'SE-DI' && lender_short_name != 'CLIX') && (lender_short_name != 'SMC')">
<!-- <mat-form-field style="width: 100%"> -->
<!-- <mat-select placeholder="Were the Kuccha records shown to the PD officer"-->
<div style="width:auto">

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 == 'MONEYWISE'">
<mat-form-field style="width: 28%" *ngIf="lenderShortName == 'CLIX' || lenderShortName == 'SMC' && productAbbr != '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 != 'MONEYWISE'">
<div *ngIf="lenderShortName != 'CLIX' && lenderShortName != 'SMC' || productAbbr == '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 != 'MONEYWISE')">
<mat-form-field style="width:64%" *ngIf="loanDetailsForm.controls['topup_amount'].value > 0 && (lenderShortName != 'CLIX' && lenderShortName != 'SMC' || productAbbr == '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 != 'MONEYWISE'">
<mat-form-field style="width: 64%" *ngIf="lenderShortName != 'CLIX' && lenderShortName != 'SMC' || productAbbr == '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>
@ -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'" style="width:96%;">
<mat-form-field *ngIf="productAbbr !== 'LAP' && productAbbr !== '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

@ -335,7 +335,7 @@ export class LoanDetailsComponent implements OnInit {
if (this.pd_all_details.pdmaster_details.fk_subproduct_id) {
this.loanDetailsForm.controls['sub_product'].setValue(this.pd_all_details.pdmaster_details.fk_subproduct_id);
}
if(this.lenderShortName == 'CLIX' || this.lenderShortName == 'MONEYWISE'){
if(this.lenderShortName == 'CLIX' || this.lenderShortName == 'SMC'){
// console.log(this.lenderShortName);
this.loanDetailsForm.controls['is_transfer'].setValue("no");
this.selectedBalancesTransferChanges("no")
@ -838,7 +838,7 @@ export class LoanDetailsComponent implements OnInit {
}
}
}
if(this.lenderShortName == 'CLIX' || this.lenderShortName == 'MONEYWISE'){
if(this.lenderShortName == 'CLIX' || this.lenderShortName == 'SMC'){
this.loanDetailsForm.controls['own_contribution'].setValue('');
this.loanDetailsForm.controls['own_contribution'].clearValidators();
this.loanDetailsForm.controls['own_contribution'].updateValueAndValidity();
@ -892,7 +892,7 @@ export class LoanDetailsComponent implements OnInit {
records.balance_transfer_amount = this.loanDetailsForm.controls['balance_transfer_amount'].value;
}
else if (this.loanDetailsForm.controls['is_transfer'].value == 'no') {
if (this.isContribution || this.lenderShortName == 'CLIX' || this.lenderShortName == 'MONEYWISE') {
if (this.isContribution || this.lenderShortName == 'CLIX' || this.lenderShortName == 'SMC') {
records.own_contribution = '';
records.source_group = '';
records.other_source = '';

View File

@ -128,21 +128,23 @@ export class QueriesDocsComponent implements OnInit {
// geoCoords=retrieved_data.link
// }
retrieved_data.docs_to_be_sighted.forEach((doc_value,index)=>{
if(doc_value.hasOwnProperty('img')){
this.docs_change_fun(index,'yes')
}
else if(doc_value.hasOwnProperty('reason')){
this.docs_change_fun(index,'no');
}
// let data=doc_value.control_name
// data=parseInt(data)
// console.log("data",data);
// data=doc_value.data
// this.docs_change_fun(index,data)
})
if(retrieved_data.docs_to_be_sighted != null){
retrieved_data.docs_to_be_sighted.forEach((doc_value,index)=>{
if(doc_value.hasOwnProperty('img')){
this.docs_change_fun(index,'yes')
}
else if(doc_value.hasOwnProperty('reason')){
this.docs_change_fun(index,'no');
}
// let data=doc_value.control_name
// data=parseInt(data)
// console.log("data",data);
// data=doc_value.data
// this.docs_change_fun(index,data)
})
}
// console.log("form123",this.docsCollectedForm.value);
this.docsCollectedForm.setValue(retrieved_data)
this.docsCollectedForm.patchValue(retrieved_data)
}
},err=>{

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 != 'MONEYWISE'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC' || product_abbr == '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 != 'MONEYWISE'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC' || product_abbr == '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 != 'MONEYWISE'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC' || product_abbr == '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 != 'MONEYWISE'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC' || product_abbr == '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 != 'MONEYWISE'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC' || product_abbr == 'LFMP'">
<mat-form-field style="width:30%">
<input matInput autocomplete="off" placeholder="Estimated Quantity"
formControlName="service_provider_quantity"
@ -485,7 +485,7 @@
</div>
</mat-card>
<div fxLayout="row" *ngIf="lender_short_name == 'MONEYWISE'">
<div fxLayout="row" *ngIf="lender_short_name == 'SMC'">
<mat-form-field style="width: 100%">
<input matInput placeholder="How was stock Validated?"
formControlName="stock_validated"

View File

@ -59,6 +59,7 @@ export class StockComponent implements OnInit {
public SPsufficientList: any = [{value:"yes",isdisplayvalue:"Yes",isdisabled:false},{value:"no",isdisplayvalue:"No",isdisabled:false},{value:"not applicable",isdisplayvalue:"Stock not required to be maintained",isdisabled:false}];
lender_short_name: any;
image_doc_params: { pdid: number; form_id: number; company_id: string; };
product_abbr: any;
/** Constructor */
constructor(notifier: NotifierService,
@ -73,6 +74,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.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.form_id = 11;
this.company_id = this.pd_all_details.company_id;
@ -205,8 +207,11 @@ export class StockComponent implements OnInit {
if (val.type_of_activity_id == 4) {
if (val.products) {
let trading_temparr = [];
trading_temparr['trading_traded_goods'] = dataForm.trade_details[0].trading_traded_goods;
this.initTradingDetails(trading_temparr);
if(dataForm.trade_details[0])
{
trading_temparr['trading_traded_goods'] = dataForm.trade_details[0].trading_traded_goods ;
this.initTradingDetails(trading_temparr);
}
}
}
if (val.type_of_activity_id == 5) {

View File

@ -50,7 +50,7 @@
formControlName="manufacturing_supplier_name">
</mat-form-field>
</div>
<div fxLayout="row nowrap" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div fxLayout="row nowrap" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC'">
<mat-form-field style="width: 15%">
<mat-select placeholder="Title"
formControlName="person_title_name">
@ -108,7 +108,7 @@
<mat-error>Enter Valid LandLine Number.</mat-error>
</mat-form-field>
</div>
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX'">
<mat-form-field style="width: 45%">
<!-- //(selectionChange)="selectedPM($event)" -->
<!-- <mat-select placeholder="Payment Type" formControlName="manufacturing_payment_type">
@ -157,11 +157,11 @@
type="number">
</mat-form-field>
</div>
<div fxLayout="row" *ngIf="lender_short_name == 'MONEYWISE'">
<div fxLayout="row" *ngIf="lender_short_name == 'SMC'">
<mat-form-field style="width: 100%">
<input matInput placeholder="Contribution to Total Purchase in %"
formControlName="manufacturing_contribution_total_purchase"
type="number" autocomplete="off" OnlyNumber type="text">
type="number" autocomplete="off" OnlyNumber type="text" maxlength="3" (blur)="onBlurMethod($event.target.value,items,1)">
</mat-form-field>
</div>
@ -228,7 +228,7 @@
formControlName="trade_supplier_name">
</mat-form-field>
</div>
<div fxLayout="row nowrap" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div fxLayout="row nowrap" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC'">
<mat-form-field style="width: 15%">
<mat-select placeholder="Title"
formControlName="person_title_name">
@ -288,7 +288,7 @@
<mat-error>Enter Valid LandLine Number.</mat-error>
</mat-form-field>
</div>
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX'">
<mat-form-field style="width: 45%">
<!-- <mat-select (selectionChange)="selectedPM($event)" placeholder="Payment Type" formControlName="trade_product_payment_type">
<mat-option *ngFor="let pm of m_paymentModeType" [value]="pm.id">{{ pm.name }}</mat-option>
@ -337,11 +337,11 @@
type="number">
</mat-form-field>
</div>
<div fxLayout="row" *ngIf="lender_short_name == 'MONEYWISE'">
<div fxLayout="row" *ngIf="lender_short_name == 'SMC'">
<mat-form-field style="width: 100%">
<input matInput placeholder="Contribution to Total Purchase in %"
formControlName="trade_product_contribution_total_purchase"
type="number" autocomplete="off" OnlyNumber type="text">
type="number" autocomplete="off" OnlyNumber type="text" maxlength="3" (blur)="onBlurMethod($event.target.value,items,2)">
</mat-form-field>
</div>
@ -413,7 +413,7 @@
formControlName="service_provider_supplier_name">
</mat-form-field>
</div>
<div fxLayout="row nowrap" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div fxLayout="row nowrap" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'SMC'">
<mat-form-field style="width: 15%">
<mat-select placeholder="Title"
formControlName="person_title_name">
@ -473,7 +473,7 @@
<mat-error>Enter Valid LandLine Number.</mat-error>
</mat-form-field>
</div>
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MONEYWISE'">
<div fxLayout="row nowrap" fxLayoutGap="2px" fxLayoutAlign="start none" *ngIf="lender_short_name != 'CLIX'">
<mat-form-field style="width: 45%">
<mat-select placeholder="Payment Terms"
@ -520,11 +520,11 @@
type="number">
</mat-form-field>
</div>
<div fxLayout="row" *ngIf="lender_short_name == 'MONEYWISE'">
<div fxLayout="row" *ngIf="lender_short_name == 'SMC'">
<mat-form-field style="width: 100%">
<input matInput placeholder="Contribution to Total Purchase in %"
formControlName="service_provider_contribution_total_purchase"
type="number" autocomplete="off" OnlyNumber type="text">
type="number" autocomplete="off" OnlyNumber type="text" maxlength="3" (blur)="onBlurMethod($event.target.value,items,3)">
</mat-form-field>
</div>

View File

@ -745,6 +745,32 @@ export class SupplierInfoComponent implements OnInit {
items.controls['manufacturing_credit_days_from'].updateValueAndValidity();
items.controls['manufacturing_credit_days_to'].updateValueAndValidity();
}
}
onBlurMethod(v,items,option) {
if(v >= 101){
// alert('Only 100% is limit');
this.notifier.notify('warning', 'Only 100% is limit');
if(option == 1){
items.controls['manufacturing_contribution_total_purchase'].setValue('');
}
if(option == 2){
items.controls['trade_product_contribution_total_purchase'].setValue('');
}
if(option == 3){
items.controls['service_provider_contribution_total_purchase'].setValue('');
}
}
// const charCode = (event.which) ? event.which : event.keyCode;
// console.log(charCode);
// if (charCode > 31 && (charCode < 48 || charCode > 57)) {
// return false;
// }
// return true;
}
// {