diff --git a/ng6-seed/src/app/sales-pd/sales-pd-list/advance-filter/advance-filter.component.html b/ng6-seed/src/app/sales-pd/sales-pd-list/advance-filter/advance-filter.component.html
index 3afdcd863..e580c0b13 100644
--- a/ng6-seed/src/app/sales-pd/sales-pd-list/advance-filter/advance-filter.component.html
+++ b/ng6-seed/src/app/sales-pd/sales-pd-list/advance-filter/advance-filter.component.html
@@ -16,7 +16,7 @@
- {{status}}
+ {{status.pd_status_name}}
diff --git a/ng6-seed/src/app/sales-pd/sales-pd-list/advance-filter/advance-filter.component.ts b/ng6-seed/src/app/sales-pd/sales-pd-list/advance-filter/advance-filter.component.ts
index 28de34f3f..b76e2d722 100644
--- a/ng6-seed/src/app/sales-pd/sales-pd-list/advance-filter/advance-filter.component.ts
+++ b/ng6-seed/src/app/sales-pd/sales-pd-list/advance-filter/advance-filter.component.ts
@@ -40,46 +40,46 @@ export class AdvanceFilterComponent implements OnInit {
console.log(this.drop_down_datas)
}
getDropdown(){
- // this._pd.getAllMasterDatas('PDSTATUS').subscribe(res=>
- // {
- // if(res.dataStatus==true)
- // {
- // this.pdStatus_all = res.records.filter(status=>status.isactive==1);
- // }
- // });
+ this._pd.getAllMasterDatas('PDSTATUS').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.pdStatus = res.records.filter(status=>status.isactive==1 && status.hasOwnProperty('avail_pd_types') && (status.avail_pd_types == '2' || status.avail_pd_types == '3' ));
+ }
+ });
this._pd.getAllMasterDatas('ENTITY').subscribe(res=>
{
if(res.dataStatus==true)
{
- this.ENTITY = res.records.filter(ent=>ent.isactive==1);
+ this.ENTITY = res.records.filter(ent=>ent.isactive==1 && ent.hasOwnProperty('avail_pd_types') && (ent.avail_pd_types == '2' || ent.avail_pd_types == '3' ));
}
});
this._pd.getAllMasterDatas('PRODUCTS').subscribe(res=>
{
if(res.dataStatus==true)
{
- this.PRODUCTS = res.records.filter(pro=>pro.isactive==1);
+ this.PRODUCTS = res.records.filter(pro=>pro.isactive==1 && pro.hasOwnProperty('avail_pd_types') && (pro.avail_pd_types == '2' || pro.avail_pd_types == '3' ));
}
});
}
ngOnChanges(){
console.log(this.drop_down_datas)
- if(this.drop_down_datas != undefined){
- this.pdStatus=this.drop_down_datas.pd_status
- if(this.ENTITY.length != 0) {
- this.entityCheck()
- }
- else{
- setTimeout(()=>{this.entityCheck()},500)
- }
- if(this.PRODUCTS.length != 0) {
- this.productCheck()
- }
- else{
- setTimeout(()=>{this.productCheck()},500)
- }
- }
+ // if(this.drop_down_datas != undefined){
+ // this.pdStatus=this.drop_down_datas.pd_status
+ // if(this.ENTITY.length != 0) {
+ // this.entityCheck()
+ // }
+ // else{
+ // setTimeout(()=>{this.entityCheck()},500)
+ // }
+ // if(this.PRODUCTS.length != 0) {
+ // this.productCheck()
+ // }
+ // else{
+ // setTimeout(()=>{this.productCheck()},500)
+ // }
+ // }
}
productCheck(){
this.PRODUCTS=this.PRODUCTS.filter(val=>{
diff --git a/ng6-seed/src/app/sales-pd/sales-pd-list/sales-pd.component.html b/ng6-seed/src/app/sales-pd/sales-pd-list/sales-pd.component.html
index 05f1fcfd3..d55916ab2 100644
--- a/ng6-seed/src/app/sales-pd/sales-pd-list/sales-pd.component.html
+++ b/ng6-seed/src/app/sales-pd/sales-pd-list/sales-pd.component.html
@@ -13,8 +13,10 @@
+