diff --git a/src/modules/InvitationForPunchOut/http/InvitationForPunchOutApiClient.ts b/src/modules/InvitationForPunchOut/http/InvitationForPunchOutApiClient.ts index 2a90d16e5..b2078ac58 100644 --- a/src/modules/InvitationForPunchOut/http/InvitationForPunchOutApiClient.ts +++ b/src/modules/InvitationForPunchOut/http/InvitationForPunchOutApiClient.ts @@ -149,6 +149,9 @@ interface McPkgResponse { description: string; system: string; disciplineCode: string; + m01: string; + m02: string; + status: string; } interface PersonResponse { diff --git a/src/modules/InvitationForPunchOut/types.d.ts b/src/modules/InvitationForPunchOut/types.d.ts index 8d80615db..01d8f1cd8 100644 --- a/src/modules/InvitationForPunchOut/types.d.ts +++ b/src/modules/InvitationForPunchOut/types.d.ts @@ -100,6 +100,9 @@ export interface McPkgRow { tableData?: { isSelected: boolean; }; + m01?: string; + m02?: string; + status?: string; } export interface McScope { diff --git a/src/modules/InvitationForPunchOut/views/CreateAndEditIPO/SelectScope/McPkgTable.tsx b/src/modules/InvitationForPunchOut/views/CreateAndEditIPO/SelectScope/McPkgTable.tsx index ffd92b79c..8a02730f2 100644 --- a/src/modules/InvitationForPunchOut/views/CreateAndEditIPO/SelectScope/McPkgTable.tsx +++ b/src/modules/InvitationForPunchOut/views/CreateAndEditIPO/SelectScope/McPkgTable.tsx @@ -65,6 +65,9 @@ const McPkgTable = forwardRef( discipline: mcPkg.disciplineCode, system: mcPkg.system, commPkgNo: commPkgNo, + status: mcPkg.status, + m01: mcPkg.m01, + m02: mcPkg.m02, tableData: { isSelected: selectedMcPkgScope.selected.some( diff --git a/src/modules/InvitationForPunchOut/views/CreateAndEditIPO/SelectScope/SelectedScope.tsx b/src/modules/InvitationForPunchOut/views/CreateAndEditIPO/SelectScope/SelectedScope.tsx index eb66c337c..d6c1310cd 100644 --- a/src/modules/InvitationForPunchOut/views/CreateAndEditIPO/SelectScope/SelectedScope.tsx +++ b/src/modules/InvitationForPunchOut/views/CreateAndEditIPO/SelectScope/SelectedScope.tsx @@ -11,6 +11,7 @@ import { import EdsIcon from '@procosys/components/EdsIcon'; import React from 'react'; +import { getFormattedDate } from '@procosys/core/services/DateService'; const multipleDisciplinesWarning = (
@@ -111,13 +112,23 @@ const SelectedScope = ({ {mcPkg.description}
+
+ Status + + {mcPkg.status} + +
M-01 date - - + + {mcPkg.m01 ? getFormattedDate(mcPkg.m01) : '-'} +
M-02 date - - + + {mcPkg.m02 ? getFormattedDate(mcPkg.m02) : '-'} +