Fairoj product category changes

This commit is contained in:
venbatechnologies@gmail.com 2020-01-22 18:32:57 +05:30
parent b602b48fa7
commit 3c069cebb8
23 changed files with 72 additions and 49 deletions

View File

@ -1 +1 @@
{"version":3,"sources":["../../@angular/common/http (ignored)"],"names":[],"mappings":";;;;;AAAA,e","file":"0.js","sourcesContent":["/* (ignored) */\n\n\n//////////////////\n// WEBPACK FOOTER\n// @angular/common/http (ignored)\n// module id = 728\n// module chunks = 0"],"sourceRoot":""}
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -99,6 +99,7 @@ export class PdQuestionAddressPage {
@ViewChild('childComp') child: PdGeneralImagesPage
customer_segment_abbr: any;
split_customer_abbr: any;
prod_catagory: any;
constructor(public navCtrl: NavController, public navParams: NavParams,public fb:FormBuilder,
public qustCat:QuestionCategoryProvider,public aws:AwsServiceProvider,
@ -112,6 +113,7 @@ export class PdQuestionAddressPage {
this.FormId = this.navParams.get('FormId');
this.lender_short_name=this.pdDetails.lender_short_name
this.product_abbr=this.pdDetails.product_abbr
this.prod_catagory=this.pdDetails.prod_catagory
this.customer_segment_abbr=this.pdDetails.customer_segment_abbr
this.split_customer_abbr = this.customer_segment_abbr.split('-')
@ -160,7 +162,8 @@ export class PdQuestionAddressPage {
address_form_remark: ['']
});
if(this.lender_short_name == 'CLIX' || this.product_abbr == 'BL'){
console.log("prod category",this.prod_catagory);
if(this.lender_short_name == 'CLIX' || this.prod_catagory == 'BL'){
this.pdQuestionAddress.removeControl('estimated_area')
this.pdQuestionAddress.removeControl('uom')
this.pdQuestionAddress.removeControl('uom_others')
@ -692,7 +695,7 @@ else{
records.addresses[0].locality_mixuse = this.pdQuestionAddress.controls.locality_mixuse.value;
records.addresses[0].pd_location = this.pdQuestionAddress.controls.pd_location.value;
records.addresses[0].comment_locality = this.pdQuestionAddress.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.pdQuestionAddress.controls.estimated_area.value;
records.addresses[0].uom = this.pdQuestionAddress.controls.uom.value;
@ -722,7 +725,7 @@ else{
records.alternative_addresses[0].locality_mixuse = this.pdQuestionAddress.controls.locality_mixuse.value;
records.alternative_addresses[0].pd_location = this.pdQuestionAddress.controls.pd_location.value;
records.alternative_addresses[0].comment_locality = this.pdQuestionAddress.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.pdQuestionAddress.controls.estimated_area.value;
records.alternative_addresses[0].uom = this.pdQuestionAddress.controls.uom.value;
@ -933,7 +936,7 @@ else{
if (datas.locality == 1) {
this.pdQuestionAddress.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.setOthers(datas.uom, '', 5);
if (data['records'].uom == 1)
@ -999,7 +1002,7 @@ else{
if (datas.locality == 1) {
this.pdQuestionAddress.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.pdQuestionAddress.controls.estimated_area.setValue(datas.estimated_area);
this.pdQuestionAddress.controls.uom.setValue(datas.uom);
this.setOthers(datas.uom, '', 5);
@ -1218,7 +1221,7 @@ else{
}
}
if(this.lender_short_name != 'CLIX' && this.product_abbr != 'BL'){
if(this.lender_short_name != 'CLIX' && this.prod_catagory != 'BL'){
this.pdQuestionAddress.controls.estimated_area.setValue(datas.estimated_area ? datas.estimated_area : '');
this.pdQuestionAddress.controls.uom.setValue(datas.uom);
if (datas.uom) {

View File

@ -149,7 +149,7 @@
autocomplete="off">
</mat-form-field>
<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:100%">
<input matInput placeholder="Area Covered" formControlName="area_covered_by_this_property"
autocomplete="off" type="number">
@ -348,7 +348,7 @@
</mat-form-field>
</div>-->
<div *ngIf="(lender_short_name != 'CLIX') && (lender_short_name == 'MWISE' ? product_abbr != 'BL' ? true : false : true) && (sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3)">
<div *ngIf="(lender_short_name != 'CLIX') && (lender_short_name == 'MWISE' ? prod_catagory != 'BL' ? true : false : true) && (sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3)">
<mat-form-field style="width:100%">
<!-- <mat-label>Vintage</mat-label> -->
@ -380,7 +380,7 @@
</mat-form-field>-->
<mat-list *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || product_abbr == 'LFMP'">
<mat-list *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || prod_catagory == 'LFMP'">
<p>Is there a Loan Existing Against this Assets?</p>
<mat-radio-group formControlName="emi">

View File

@ -70,6 +70,7 @@ export class PdQuestionAssestsPage {
product_abbr: any;
pd_value_params:any;
@ViewChild('childComp') child: PdGeneralImagesPage
prod_catagory: any;
// data:Observable <any>;
constructor(public navCtrl: NavController, public navParams: NavParams,public fb:FormBuilder,
public aws:AwsServiceProvider,public qustCat:QuestionCategoryProvider,public toast:ToastProvider,
@ -82,6 +83,7 @@ export class PdQuestionAssestsPage {
this.pdDetails = this.navParams.get('pdDetails');
this.lender_short_name=this.pdDetails.lender_short_name
this.product_abbr=this.pdDetails.product_abbr
this.prod_catagory=this.pdDetails.prod_catagory
this.pdid=this.pdDetails.pd_id;
this.users = localStorage.getItem('pd_user_details')
this.users=JSON.parse(this.users).userid

View File

@ -215,7 +215,7 @@
<!-- <span *ngIf="(sup.get('business_assets_mode').value == 1 || sup.get('business_assets_mode').value == 2 || sup.get('business_assets_mode').value == 3) && sup.get('business_ownership_type').value == 'owned'"> -->
<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>
<mat-label>Age of Asset in Years</mat-label>
<input matInput autocomplete="off" placeholder="eg.99" formControlName="business_vintage"
@ -240,7 +240,7 @@
<!-- </div> -->
<span>
<div *ngIf="(lender_short_name !== 'CLIX' && lender_short_name !== 'MWISE' || product_abbr === 'LFMP') && (itemrow.get('business_ownership_type').value == 'owned')">
<div *ngIf="(lender_short_name !== 'CLIX' && lender_short_name !== 'MWISE' || prod_catagory === 'LFMP') && (itemrow.get('business_ownership_type').value == 'owned')">
<p>Is There a Loan Existing Against This Asset?</p>
<mat-radio-group formControlName="business_emi">
<mat-radio-button value="yes">Yes</mat-radio-button>
@ -426,7 +426,7 @@
</mat-form-field>
<!-- <div *ngIf="sup.get('business_assets_mode').value == 1 || sup.get('business_assets_mode').value == 2 || sup.get('business_assets_mode').value == 3">-->
<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>
<mat-label>Age of Asset in Years</mat-label>
@ -449,7 +449,7 @@
<!--<div *ngIf="sup.get('business_assets_mode').value == 2 || sup.get('business_assets_mode').value == 3 || sup.get('business_assets_mode').value == 4">-->
<div
*ngIf="(lender_short_name !== 'CLIX' && lender_short_name !== 'MWISE' || product_abbr === 'LFMP') && (sup.get('business_assets_mode').value != '') && sup.get('business_ownership_type').value == 'owned'">
*ngIf="(lender_short_name !== 'CLIX' && lender_short_name !== 'MWISE' || prod_catagory === 'LFMP') && (sup.get('business_assets_mode').value != '') && sup.get('business_ownership_type').value == 'owned'">
<p>Is There a Loan Existing Against This Asset?</p>
<mat-radio-group formControlName="business_emi">

View File

@ -77,6 +77,7 @@ export class PdQuestionBusinessAssetsPage {
pd_value_params:any;
CurrentAddressLabel=null;
@ViewChild('childComp') child: PdGeneralImagesPage
prod_catagory: any;
constructor(public navCtrl: NavController, public navParams: NavParams,
@ -88,6 +89,7 @@ export class PdQuestionBusinessAssetsPage {
this.pdDetails=this.navParams.get('pdDetails');
this.lender_short_name=this.pdDetails.lender_short_name
this.product_abbr=this.pdDetails.product_abbr
this.prod_catagory=this.pdDetails.prod_catagory
this.formDetails=this.navParams.get('formDetails');
this.users = localStorage.getItem('pd_user_details')
this.users=JSON.parse(this.users).userid

View File

@ -96,6 +96,7 @@ export class PdQuestionBusinessInfoPage {
pd_value_params:any;
@ViewChild('childComp') child: PdGeneralImagesPage
prod_catagory: any;
@ -123,6 +124,7 @@ export class PdQuestionBusinessInfoPage {
this.generalExistBusinessMonth = this.pdDetails.business_month;
this.lender_short_name = this.pdDetails.lender_short_name;
this.product_abbr = this.pdDetails.product_abbr;
this.prod_catagory=this.pdDetails.prod_catagory
console.log("cus",this.pdDetails.customer_segment_abbr)
this.customer_segment_abbr=this.pdDetails.customer_segment_abbr
this.step = 0
@ -338,7 +340,7 @@ export class PdQuestionBusinessInfoPage {
// country_sale.push(this.createCountrySale());
//const max_sale_state:any=<FormArray> this.businessForm.controls['manufacturing_activity_details']['controls'][0].controls.max_sale_state_name;
//max_sale_state.push(this.maxSaleState())
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 (data['status'] == 200) {
@ -546,7 +548,7 @@ export class PdQuestionBusinessInfoPage {
});
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')){
if(!(this.lender_short_name == 'CLIX' && this.prod_catagory == 'BL') && !(this.lender_short_name == 'MWISE' && this.prod_catagory == 'BL')){
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');
@ -627,7 +629,7 @@ export class PdQuestionBusinessInfoPage {
});
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');
@ -709,7 +711,7 @@ export class PdQuestionBusinessInfoPage {
})
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');
@ -1143,12 +1145,12 @@ export class PdQuestionBusinessInfoPage {
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

@ -351,7 +351,7 @@
<input matInput autocomplete="off" placeholder="What is the reason for the Loss?" formControlName="estimate_reason_for_loss">
</mat-form-field>
</div>
<mat-form-field *ngIf="lender_short_name == 'CLIX' && product_abbr =='LAEP'">
<mat-form-field *ngIf="lender_short_name == 'CLIX' && prod_catagory =='LAEP'">
<input matInput autocomplete="off" placeholder="Annual Sales through Credit Card / POS machines" formControlName="estimate_posmachine_or_cc_annual_sales" type="number" (keyup)="inWords($event,i,13)">
<mat-hint align="end" style="font-size:11px" *ngIf="details.get('estimate_posmachine_or_cc_annual_sales').value != ''">{{"&#8377;"}} {{AV_CCAnnualSalesAmtInwords[i]}} Only </mat-hint>
</mat-form-field>

View File

@ -73,6 +73,7 @@ export class PdQuestionFinancialInfoPage {
pd_value_params:any;
@ViewChild('childComp') child: PdGeneralImagesPage
@ViewChild(PdGeneralImagesPage) imagesValue
prod_catagory: any;
@ -93,6 +94,7 @@ export class PdQuestionFinancialInfoPage {
this.CustSegAbbr=x[1]
this.lender_short_name = this.pdDetails.lender_short_name;
this.product_abbr = this.pdDetails.product_abbr;
this.prod_catagory=this.pdDetails.prod_catagory
this.initFinancialForm()
this.pd_value_params={pd_id:this.pdDetails.pd_id,form_id:this.FormId,company_id:this.pdDetails.company_id}

View File

@ -42,6 +42,7 @@ export class PdQuestionFuturePlansAndBusinessEnvironmentPage {
pd_value_params:any;
@ViewChild('childComp') child: PdGeneralImagesPage
prod_catagory: any;
constructor(public navCtrl: NavController, public navParams: NavParams, public fb: FormBuilder,
@ -59,6 +60,7 @@ export class PdQuestionFuturePlansAndBusinessEnvironmentPage {
this.users=JSON.parse(this.users).userid
this.lender_short_name = this.pdDetails.lender_short_name;
this.product_abbr = this.pdDetails.product_abbr;
this.prod_catagory=this.pdDetails.prod_catagory
this.complete_status = this.pdDetails.pd_status == 'COMPLETED' ? true : false;
this._futurePlansForm = this.fb.group({

View File

@ -105,7 +105,7 @@
</mat-select>
</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:100%">
<input matInput autocomplete="off" placeholder="Estimated Quantity"
formControlName="raw_quantity" type="number">
@ -199,7 +199,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:100%">
<input matInput autocomplete="off" placeholder="Estimated Quantity"
formControlName="goods_quantity" type="number">
@ -293,7 +293,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:100%">
<input matInput autocomplete="off" placeholder="Estimated Quantity"
formControlName="traded_goods_quantity" type="number">
@ -391,7 +391,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:100%">
<input matInput autocomplete="off" placeholder="Estimated Quantity"
formControlName="traded_goods_quantity" type="number">
@ -508,7 +508,7 @@
</mat-form-field>
<span *ngIf="serv.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:100%">
<input matInput autocomplete="off" placeholder="Estimated Quantity"
formControlName="service_provider_quantity" type="number">

View File

@ -73,6 +73,7 @@ export class PdQuestionStockInfoPage {
pd_value_params:any;
@ViewChild('childComp') child: PdGeneralImagesPage
prod_catagory: any;
constructor(public navCtrl: NavController, public navParams: NavParams, public qustCat: QuestionCategoryProvider,
public aws: AwsServiceProvider, public toast: ToastProvider, public fb: FormBuilder,
@ -83,6 +84,7 @@ export class PdQuestionStockInfoPage {
this.pdDetails = this.navParams.get('pdDetails');
this.lender_short_name=this.pdDetails.lender_short_name
this.product_abbr=this.pdDetails.product_abbr
this.prod_catagory=this.pdDetails.prod_catagory
this.formDetails = this.navParams.get('formDetails');
this.users = localStorage.getItem('pd_user_details')
this.users=JSON.parse(this.users).userid

View File

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

View File

@ -61,6 +61,7 @@ applicants: any;
pd_value_params:any;
@ViewChild('childComp') child: PdGeneralImagesPage
prod_catagory: any;
constructor(public navCtrl: NavController, public navParams: NavParams,public fb:FormBuilder,
public qustCat:QuestionCategoryProvider,public toast:ToastProvider,
@ -74,6 +75,7 @@ applicants: any;
this.FormId = this.navParams.get('FormId');
this.applicants = this.pdDetails.applicat_details.filter(val=>val.pd_co_applicant_id != 0);
this.productAbbr=this.pdDetails.product_abbr
this.prod_catagory=this.pdDetails.prod_catagory
this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
@ -86,7 +88,7 @@ applicants: any;
this.currentLoans = this.fb.group(
{
existing_loan: [null],
loan_info_available:[this.productAbbr == 'LAEP' || this.productAbbr == 'BL' ? null : 'Yes'],
loan_info_available:[this.prod_catagory == 'LAEP' || this.prod_catagory == 'BL' ? null : 'Yes'],
currentloan_remarks:[null],
loan_details: this.fb.array([])
});

View File

@ -200,7 +200,7 @@
</ion-row>
</ion-buttons>
</mat-card>
<mat-card *ngIf="tech.get('selected_person').value != '' && (lender_short_name != 'CLIX' && lender_short_name != 'MWISE') || product_abbr === 'LFMP'">
<mat-card *ngIf="tech.get('selected_person').value != '' && (lender_short_name != 'CLIX' && lender_short_name != 'MWISE') || prod_catagory === 'LFMP'">
<div formArrayName="family_members_details" >
<div *ngFor="let item of tech.controls.family_members_details['controls']; let ix=index; let last=last" [formGroupName]="ix">
@ -301,7 +301,7 @@
</div>
</mat-card>
<mat-card *ngIf="lender_short_name == 'CLIX' || lender_short_name == 'MWISE' && product_abbr !== 'LFMP'">
<mat-card *ngIf="lender_short_name == 'CLIX' || lender_short_name == 'MWISE' && prod_catagory !== 'LFMP'">
<mat-card-header appearence="outline">
<mat-card-title><h5>Family Details Of {{FamilyMemberAsLabel[i]}}</h5></mat-card-title>
</mat-card-header>

View File

@ -79,6 +79,7 @@ data:any;
pd_value_params:any;
@ViewChild('childComp') child: PdGeneralImagesPage
prod_catagory: any;
constructor(public navCtrl: NavController, public navParams: NavParams,public fb:FormBuilder,
public qustCat:QuestionCategoryProvider,public aws:AwsServiceProvider,
@ -91,6 +92,7 @@ data:any;
this.pdDetails = this.navParams.get('pdDetails');
this.lender_short_name=this.pdDetails.lender_short_name
this.product_abbr=this.pdDetails.product_abbr
this.prod_catagory=this.pdDetails.prod_catagory
this.selected_person=this.pdDetails.pdapplicants_details;
this.selectPerson=this.pdDetails.applicat_details
this.users = localStorage.getItem('pd_user_details')

View File

@ -210,7 +210,7 @@
</mat-form-field> -->
</mat-card-content>
</mat-card>
<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>
@ -224,7 +224,7 @@
</mat-select>
<mat-error style="color:red;font-size:12px;margin:0;padding:0;font-weight: normal;float:right" *ngIf="_finalRemarkForm.controls['outlet_location'].hasError('required')">Comment Required</mat-error>
</mat-form-field> -->
<div *ngIf="product_abbr == 'LAEP' && _finalRemarkForm.controls['outlet_location']">
<div *ngIf="prod_catagory == 'LAEP' && _finalRemarkForm.controls['outlet_location']">
<p>Comment on Footfall in the market where the B2C outlet is located…</p>
<mat-radio-group formControlName="outlet_location">

View File

@ -47,6 +47,7 @@ export class PdQuestionFinalRemarkPage {
pd_value_params:any;
@ViewChild('childComp') child: PdGeneralImagesPage
prod_catagory: any;
constructor(public navCtrl: NavController, public navParams: NavParams, public fb:FormBuilder,
public qustcat:QuestionCategoryProvider,public aws:AwsServiceProvider,
@ -61,6 +62,7 @@ export class PdQuestionFinalRemarkPage {
this.users=JSON.parse(this.users).userid
this.lender_short_name = this.pdDetails.lender_short_name;
this.product_abbr = this.pdDetails.product_abbr;
this.prod_catagory=this.pdDetails.prod_catagory
this._finalRemarkForm=this.fb.group({
fk_createdby:[this.users],
@ -87,8 +89,8 @@ export class PdQuestionFinalRemarkPage {
})
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(''));
@ -99,7 +101,7 @@ export class PdQuestionFinalRemarkPage {
this._finalRemarkForm.removeControl('sealing_activity');
this._finalRemarkForm.removeControl('demolition_activity');
}
// this.product_abbr != 'LAEP' ?
// this.prod_catagory != 'LAEP' ?
// this._finalRemarkForm.controls['final_form_remarks'].setValidators(Validators.compose([Validators.required])) :
// this._finalRemarkForm.controls['final_form_remarks'].clearValidators()
// this._finalRemarkForm.controls['final_form_remarks'].updateValueAndValidity()
@ -420,9 +422,9 @@ RecommendationChange(e) {
}
this._finalRemarkForm.controls.final_form_remarks.setValue(data['records'].final_form_remarks);
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

@ -73,7 +73,7 @@
<mat-form-field *ngIf="isOtherPurpose" style="width: 100%">
<input matInput placeholder="Specify End Use" formControlName="end_use_other">
</mat-form-field>
<mat-form-field style="width: 100%" *ngIf="lender_short_name == 'CLIX' || lender_short_name == 'MWISE' && productAbbr != 'LFMP'">
<mat-form-field style="width: 100%" *ngIf="lender_short_name == 'CLIX' || lender_short_name == 'MWISE' && prod_catagory != 'LFMP'">
<mat-select placeholder="Total fund requirement"
formControlName="is_there_total_fund">
<mat-option>Select</mat-option>
@ -89,7 +89,7 @@
<mat-hint align="end" *ngIf="loanDetailsForm.controls['fund_amt'].value != '' && fundAmtInWords !=''">{{"&#8377;"}} {{fundAmtInWords}} Only</mat-hint>
</mat-form-field>
</span>
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || productAbbr == 'LFMP'">
<div *ngIf="lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || prod_catagory == 'LFMP'">
<mat-form-field style="width: 100%">
<mat-select placeholder="Is there a balance transfer ? " (selectionChange)="selectedBalancesTransferChanges($event.value)"
formControlName="is_transfer" >
@ -131,7 +131,7 @@
<input matInput placeholder="Top Up Amt" type="number" formControlName="topup_amount" (keyup)="inWords($event,5)">
<mat-hint align="end" *ngIf="loanDetailsForm.controls['topup_amount'].value != ''">{{"&#8377;"}} {{topUpAmtInWords}} Only</mat-hint>
</mat-form-field >
<mat-form-field style="width:100%" *ngIf="loanDetailsForm.controls['topup_amount'].value > 0 && (lender_short_name != 'CLIX' && lender_short_name != 'MWISE' || productAbbr == 'LFMP')" >
<mat-form-field style="width:100%" *ngIf="loanDetailsForm.controls['topup_amount'].value > 0 && (lender_short_name != 'CLIX' && lender_short_name != '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>
@ -226,7 +226,7 @@
<mat-hint align="end" *ngIf="loanDetailsForm.controls['emv_per_customer'].value != ''">{{"&#8377;"}} {{emvAmtInWords}} Only</mat-hint>
</mat-form-field>
<!-- <div *ngIf="productAbbr == 'HL' || productAbbr == 'NRPL' || productAbbr == 'LL'"> -->
<mat-form-field style="width: 100%" *ngIf="productAbbr !== 'LAP'" >
<mat-form-field style="width: 100%" *ngIf="prod_catagory !== 'LAP'" >
<input matInput placeholder="Name of the Current Owner(s)/Seller(s) of the Property" formControlName="property_seller">
</mat-form-field>
<mat-form-field style="width: 100%">

View File

@ -95,6 +95,7 @@ export class PdQuestionLoansPage {
address_placeholder: string;
pd_value_params:any;
@ViewChild('childComp') child: PdGeneralImagesPage
prod_catagory: any;
constructor(public navCtrl: NavController, public navParams: NavParams, public fb: FormBuilder,
public qustCat: QuestionCategoryProvider, public aws: AwsServiceProvider,
@ -109,6 +110,7 @@ export class PdQuestionLoansPage {
this.applicants = this.pdDetails.applicat_details
this.applicants = this.applicants.filter(appt => appt.applicant_type != 2 && appt.applicant_type != 3);
this.productAbbr = this.pdDetails.product_abbr;
this.prod_catagory=this.pdDetails.prod_catagory
this.subProductName = this.pdDetails.subproduct_name;
this.users = localStorage.getItem('pd_user_details')
this.users=JSON.parse(this.users).userid
@ -160,19 +162,19 @@ export class PdQuestionLoansPage {
this.onChangeSubProduct(this.pdDetails.fk_subproduct_id);
}
if(this.pdDetails.product_abbr !="BL" || this.pdDetails.product_abbr !="PL" || this.pdDetails.product_abbr !="LAEP")
if(this.pdDetails.prod_catagory !="BL" || this.pdDetails.prod_catagory !="PL" || this.pdDetails.prod_catagory !="LAEP")
{
this.mortagetypeAccess = true;
}else
{
this.mortagetypeAccess = false;
}
if(this.productAbbr == 'HL' || this.productAbbr == 'NRPL' || this.productAbbr == 'LL'){
if(this.prod_catagory == 'HL' || this.prod_catagory == 'NRPL' || this.prod_catagory == 'LL'){
this.addControlAddress('')
this.owner_name_placeholder='Name of the Proposed Owner'
this.address_placeholder='Address of the Proposed Property'
}
// if(this.productAbbr == 'HL' || this.productAbbr == 'NRPL' || this.productAbbr == 'LL')
// if(this.prod_catagory == 'HL' || this.prod_catagory == 'NRPL' || this.prod_catagory == 'LL')
else{
this.addControlAddress('')
this.owner_name_placeholder='Name of Owner'
@ -180,7 +182,7 @@ export class PdQuestionLoansPage {
}
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;
}
this.loanDetailsForm.controls['filterCtrl'].valueChanges
@ -942,7 +944,7 @@ export class PdQuestionLoansPage {
this.loading.dismissLoader();
this.toast.pdTriggerappmessage("Network Error");
})
if(this.productAbbr == 'BL' || this.productAbbr == 'PL' || this.productAbbr == 'LL' || this.productAbbr == 'LAEP'){
if(this.prod_catagory == 'BL' || this.prod_catagory == 'PL' || this.prod_catagory == 'LL' || this.prod_catagory == 'LAEP'){
this.mortageCardAccess = false;
this.loanDetailsForm.controls['owner_name'].setValue('');
this.loanDetailsForm.controls['owner_name'].clearValidators();