This commit is contained in:
venbainfotech 2021-12-16 16:43:34 +05:30
parent da6876c571
commit d8332a80f6

View File

@ -18,6 +18,7 @@ export class SalesPdService {
advancedFilter(params): Observable<any>{
return this._http.post(api_url+'filterSalesPDList',{"records":params})
}
//checking
// getData1(product_id,sales_pd_type?){
// let users:any=localStorage.getItem('user_details')
// users=JSON.parse(users)
@ -508,7 +509,8 @@ getCityPincode(value){
saveSalesPDImage(params,form_structure?): Observable<Response>{
return Observable.create((observer:Observer<any>) => {
this.getData_fromLocal('sales_pd_id_PRIMARYKEY').then(key_value=>{
// this.getData_fromLocal('sales_pd_id_PRIMARYKEY').then(key_value=>{
let key_value = localStorage.getItem('sales_pd_id_PRIMARYKEY')
// this.cameraService.getGeoTag().then(geoCords=>{
//params.location=geoCords
//params.fk_sales_pd_id=key_value
@ -547,12 +549,13 @@ getCityPincode(value){
// })
}
//})
})
// })
})
}
updateSectionDataLocally(params,form_structure){
return Observable.create((observer:Observer<any>) => {
this.getData_fromLocal('sales_pd_id_PRIMARYKEY').then(key_value=>{
let key_value = localStorage.getItem('sales_pd_id_PRIMARYKEY')
// this.getData_fromLocal('sales_pd_id_PRIMARYKEY').then(key_value=>{
// params.location=geoCords
params.fk_sales_pd_id=key_value
let values={sales_pd_id:key_value,dataStatus:true}
@ -585,7 +588,7 @@ getCityPincode(value){
// observer.complete()
//})
}
})
// })
})
}
clear_local_key(key){