From bdab18c1143e1d710a397d1811876bf12045eb83 Mon Sep 17 00:00:00 2001 From: ashwaq Date: Mon, 13 Jan 2020 15:23:21 +0300 Subject: [PATCH] fix infiniteScroll payslip --- Mohem/src/app/payslip/home/home.component.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Mohem/src/app/payslip/home/home.component.ts b/Mohem/src/app/payslip/home/home.component.ts index 65c8bcc1..1a387670 100644 --- a/Mohem/src/app/payslip/home/home.component.ts +++ b/Mohem/src/app/payslip/home/home.component.ts @@ -182,7 +182,7 @@ getEarings(ActionContextID){ P_PAGE_NUM:1, P_PAGE_LIMIT:100 } - + this.doinfinitEarReq=request; this.payslipService.getEarings(request, ()=> {} , this.ts.trPK('general', 'retry')).subscribe((result)=> { this.handleGetEaringsResult(result); @@ -209,7 +209,7 @@ getDeduction(ActionContextID){ // this.deductionReq.P_ACTION_CONTEXT_ID=ActionContextID; // this.deductionReq.P_PAGE_NUM=1; // this.deductionReq.P_PAGE_LIMIT=100; - + this.doinfiniteDedReq=request; this.payslipService.getDeduction(request, ()=> {} , this.ts.trPK('general', 'retry')).subscribe((result)=> { @@ -229,10 +229,10 @@ getDeduction(ActionContextID){ //this.pageNum= this.pageNum + 1; if (!this.IsReachEnd) { - this.payslipService.getDeduction(this.doinfiniteReq).subscribe( + this.payslipService.getDeduction(this.doinfiniteDedReq).subscribe( (result: any) => { if (this.common.validResponse(result)) { - this.doinfiniteReq.P_PAGE_NUM++; + this.doinfiniteDedReq.P_PAGE_NUM++; if (this.common.hasData(result.GetDeductionsList)) { result.GetDeductionsList.forEach(element => { if (element.ROW_NUM == element.NO_OF_ROWS) { @@ -261,10 +261,10 @@ getDeduction(ActionContextID){ //this.pageNum= this.pageNum + 1; if (!this.IsReachEnd) { - this.payslipService.getEarings(this.deductionReq).subscribe( + this.payslipService.getEarings(this.doinfinitEarReq).subscribe( (result: any) => { if (this.common.validResponse(result)) { - this.deductionReq.P_PAGE_NUM++; + this.doinfinitEarReq.P_PAGE_NUM++; if (this.common.hasData(result.GetEarningsList)) { result.GetEarningsList.forEach(element => { if (element.ROW_NUM == element.NO_OF_ROWS) {