Skip to content

Commit

Permalink
Merge pull request #3015 from MetaPhase-Consulting/pv-fix
Browse files Browse the repository at this point in the history
Projected Vacancy Updated New Fields
  • Loading branch information
M00staff committed Jun 11, 2024
2 parents ccd91d3 + 48d5c7a commit b4b9a10
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions src/Components/ProjectedVacancyCard/ProjectedVacancyCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,20 @@ const ProjectedVacancyCard = (props) => {
{ 'Position Title': result?.postitledesc || NO_POSITION_TITLE },
],
bodyPrimary: [
{ 'Assignee TED': displayTedEmp(result?.assignee_tour_end_date, result?.assignee) },
{ 'Incumbent TED': displayTedEmp(result?.incumbent_tour_end_date, result?.incumbent) },
{ 'Bid Season': result?.fvbsnid ? bidSeasons.find(s => s.code === result.fvbsnid).description : DEFAULT_TEXT },
{ 'Tour of Duty': result?.tour_of_duty_description || NO_TOUR_OF_DUTY },
{
'Assignee TED': displayTedEmp(
result?.assigneeAssignment[0]?.asgdetdteddate,
result?.assigneeAssignment[0]?.perpiifullname,
),
},
{
'Incumbent TED': displayTedEmp(
result?.incumbentAssignment[0]?.asgdetdteddate,
result?.incumbentAssignment[0]?.perpiifullname,
),
},
{ 'Bid Season': result?.bsndescrtext || DEFAULT_TEXT },
{ 'Tour of Duty': result?.assigneeAssignment[0]?.toddesctext || NO_TOUR_OF_DUTY },
{ 'Languages': displayLangs() },
{ 'Included': result?.fvexclimportind === 'Y' ? 'Yes' : 'No' },
],
Expand Down Expand Up @@ -172,9 +182,19 @@ const ProjectedVacancyCard = (props) => {
};
const form = {
staticBody: [
{ 'Assignee TED': displayTedEmp(result?.assignee_tour_end_date, result?.assignee) },
{ 'Incumbent TED': displayTedEmp(result?.incumbent_tour_end_date, result?.incumbent) },
{ 'Tour of Duty': result?.tour_of_duty_description || NO_TOUR_OF_DUTY },
{
'Assignee TED': displayTedEmp(
result?.assigneeAssignment[0]?.asgdetdteddate,
result?.assigneeAssignment[0]?.perpiifullname,
),
},
{
'Incumbent TED': displayTedEmp(
result?.incumbentAssignment[0]?.asgdetdteddate,
result?.incumbentAssignment[0]?.perpiifullname,
),
},
{ 'Tour of Duty': result?.assigneeAssignment[0]?.toddesctext || NO_TOUR_OF_DUTY },
{ 'Languages': displayLangs() },
{ 'Bureau': result?.posbureaushortdesc || NO_BUREAU },
{ 'Location': result?.poslocationcode || NO_POST },
Expand Down

0 comments on commit b4b9a10

Please sign in to comment.