From 4b923bbb09d13ea5f4b19991d2d9b6db94168375 Mon Sep 17 00:00:00 2001 From: umasoodch Date: Tue, 1 Mar 2022 16:32:56 +0300 Subject: [PATCH] fixed po --- .../src/app/notification/home/home.component.html | 4 ++-- .../src/app/notification/home/home.component.scss | 1 + .../worklist-main-po/worklist-main-po.component.ts | 14 +++++++------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Mohem/src/app/notification/home/home.component.html b/Mohem/src/app/notification/home/home.component.html index 2ae57a26..e21fda10 100644 --- a/Mohem/src/app/notification/home/home.component.html +++ b/Mohem/src/app/notification/home/home.component.html @@ -36,7 +36,7 @@ - + diff --git a/Mohem/src/app/notification/home/home.component.scss b/Mohem/src/app/notification/home/home.component.scss index e8bc529b..52161cb1 100644 --- a/Mohem/src/app/notification/home/home.component.scss +++ b/Mohem/src/app/notification/home/home.component.scss @@ -310,6 +310,7 @@ width: 100% !important; .filters-row { margin-top: 10px; margin-left: 20px; +margin-bottom: 20px; } .work-list-container { position: relative; diff --git a/Mohem/src/app/notification/worklist-main-po/worklist-main-po.component.ts b/Mohem/src/app/notification/worklist-main-po/worklist-main-po.component.ts index 844f3af6..bf4dd42d 100644 --- a/Mohem/src/app/notification/worklist-main-po/worklist-main-po.component.ts +++ b/Mohem/src/app/notification/worklist-main-po/worklist-main-po.component.ts @@ -262,7 +262,7 @@ export class WorklistMainPoComponent implements OnInit { this.worklistMainService .getPONotificationBody(notificationBodyObj) .subscribe((result: PONotificatonBodyResponse) => { - // console.log(result.GetPoNotificationBodyList.POHeader[0].BUYER); + // console.log(result.SFH_GetPoNotificationBodyList.POHeader[0].BUYER); this.handleWorkListBodyResult(result, "PO"); }); } @@ -309,11 +309,11 @@ export class WorklistMainPoComponent implements OnInit { } } else if (Type == "PO") { - if (result.GetPoNotificationBodyList) { + if (result.SFH_GetPoNotificationBodyList) { // console.log("PO"); - this.POHeader = result.GetPoNotificationBodyList.POHeader; - this.POLines = result.GetPoNotificationBodyList.POLines; + this.POHeader = result.SFH_GetPoNotificationBodyList.POHeader; + this.POLines = result.SFH_GetPoNotificationBodyList.POLines; for (var i = 0; i < this.POHeader.length; i++) { this.PO_NUMBER = this.POHeader[i].PO_NUMBER; @@ -332,7 +332,7 @@ export class WorklistMainPoComponent implements OnInit { // HDR_ATTRIBUTE_VALUE } this.notificationBodyRes = - result.GetPoNotificationBodyList; + result.SFH_GetPoNotificationBodyList; } }// } @@ -1032,10 +1032,10 @@ export class WorklistMainPoComponent implements OnInit { this.worklistMainService.getPONotificationBody(this.WorkListBodyObj). subscribe((result: any) => { if (this.common.validResponse(result)) { - if (result.GetPoNotificationBodyList != undefined) { + if (result.SFH_GetPoNotificationBodyList != undefined) { this.P_PAGE_NUM++; this.WorkListBodyObj.P_PAGE_NUM = this.P_PAGE_NUM; - (result.GetPoNotificationBodyList).forEach(element => { + (result.SFH_GetPoNotificationBodyList).forEach(element => { if (element.ROW_NUM == element.NO_OF_ROWS) { this.IsReachEnd = true; } else {