Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/104582 handle scope handed over status #768

Merged
merged 8 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ const ipoStatuses: FilterInput[] = [
id: IpoStatusEnum.ACCEPTED,
title: 'Accepted',
},
{
id: IpoStatusEnum.SCOPEHANDEDOVER,
title: 'Scope handed over',
},
];

const punchOutDateFields: FilterInput[] = [
Expand Down
11 changes: 11 additions & 0 deletions src/modules/InvitationForPunchOut/views/ViewIPO/ViewIPO.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,18 @@ const stepsWhenCanceled: Step[] = [
{ title: 'Punch-out is canceled', isCompleted: true },
];

const stepsWhenHandedOver: Step[] = [
{ title: 'Invitation for punch-out sent', isCompleted: true },
{ title: 'Punch-out complete', isCompleted: true },
{ title: 'Punch-out accepted by company', isCompleted: true },
];

enum StepsEnum {
Planned = 1,
Completed = 2,
Accepted = 3,
Canceled = 4,
ScopeHandedOver = 5,
}

const ipoHeaderSize = 136;
Expand Down Expand Up @@ -143,6 +150,10 @@ const ViewIPO = (): JSX.Element => {
setSteps(stepsWhenCanceled);
setCurrentStep(StepsEnum.Canceled + 1);
break;
case StepsEnum[5]:
setSteps(stepsWhenHandedOver);
setCurrentStep(StepsEnum.ScopeHandedOver + 1);
break;
default:
setCurrentStep(StepsEnum.Planned + 1);
}
Expand Down
1 change: 1 addition & 0 deletions src/modules/InvitationForPunchOut/views/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export enum IpoStatusEnum {
PLANNED = 'Planned',
COMPLETED = 'Completed',
ACCEPTED = 'Accepted',
SCOPEHANDEDOVER = 'ScopeHandedOver',
CANCELED = 'Canceled',
}

Expand Down
Loading