product filter changes

This commit is contained in:
sriram-at-840620226347 2019-11-18 18:56:03 +05:30
parent 067ecb8963
commit a39f2ad28f

View File

@ -223,9 +223,9 @@ if(!option){
return this.productAllList[findIndex];
});
// console.log('FilteredAbbr',FilteredAbbr);
this.productList = FilteredAbbr.length > 0 ? FilteredAbbr : this.productAllList;
// this.productList = FilteredAbbr.length > 0 ? FilteredAbbr : this.productAllList;
// this.productList = this.productAllList;
this.productList = this.productAllList;
}
else{
this.productList = this.productAllList;
@ -407,7 +407,7 @@ if(!option){
case 'LAEP':
// console.log(2);
this.customerSegmentList = this.customerSegmentAllList.filter(s => (s.customer_segment).includes('Self'));
this._EditPDtriggerForm.controls['fk_subproduct_id'].setValue(this.subProductList[0].subproduct_id);
// this._EditPDtriggerForm.controls['fk_subproduct_id'].setValue(this.subProductList[0].subproduct_id);
if(this.lenderShortName == 'CLIX' && flag==2 ){ this._EditPDtriggerForm.controls['fk_customer_segment'].setValue('5'); }
this.subProductList=[];
this.isSubproductShown = false;