Skip to content

Commit 05561f9

Browse files
Merge 01f7baf into staging
2 parents c39ad21 + 01f7baf commit 05561f9

3 files changed

Lines changed: 22 additions & 22 deletions

File tree

src/components/HrTools/GoalCalculator/SummaryReport/MpdGoal/MpdGoalTable.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -242,18 +242,18 @@ export const MpdGoalTable: React.FC<MpdGoalTableProps> = ({
242242
},
243243
...ministryExpenseRows,
244244
{
245-
line: '4',
245+
line: '3',
246246
category: t('Ministry Expenses Subtotal'),
247247
value: (goalTotals) =>
248248
goalTotals.ministryExpensesTotal + goalTotals.benefitsCharge,
249249
},
250250
{
251-
line: '5',
251+
line: '4',
252252
category: t('Subtotal'),
253253
value: (goalTotals) => goalTotals.overallSubtotal,
254254
},
255255
{
256-
line: '6',
256+
line: '5',
257257
category: t('Subtotal with {{admin}} admin charge', {
258258
admin: percentageFormat(
259259
goalMiscConstants.RATES?.ADMIN_RATE?.fee ?? 0,
@@ -263,8 +263,8 @@ export const MpdGoalTable: React.FC<MpdGoalTableProps> = ({
263263
value: (goalTotals) => goalTotals.overallSubtotalWithAdmin,
264264
},
265265
{
266-
line: '7',
267-
category: t('Total Goal (line 6 with {{attrition}} attrition)', {
266+
line: '6',
267+
category: t('Total Goal (line 5 with {{attrition}} attrition)', {
268268
attrition: percentageFormat(
269269
goalMiscConstants.RATES?.ATTRITION_RATE?.fee ?? 0,
270270
locale,
@@ -273,17 +273,17 @@ export const MpdGoalTable: React.FC<MpdGoalTableProps> = ({
273273
value: (goalTotals) => goalTotals.overallTotal,
274274
},
275275
{
276-
line: '8',
276+
line: '7',
277277
category: t('Solid Monthly Support Developed'),
278278
value: () => supportRaised,
279279
},
280280
{
281-
line: '9',
281+
line: '8',
282282
category: t('Monthly Support to be Developed'),
283283
value: (goalTotals) => goalTotals.overallTotal - supportRaised,
284284
},
285285
{
286-
line: '10',
286+
line: '9',
287287
category: t('Support Goal Percentage Progress'),
288288
value: (goalTotals) =>
289289
safeProgressRatio(supportRaised, goalTotals.overallTotal),
@@ -366,14 +366,14 @@ export const MpdGoalTable: React.FC<MpdGoalTableProps> = ({
366366
// Bold subtotal and total lines
367367
if (
368368
params.row.line === '1J' ||
369-
params.row.line === '7' ||
370-
params.row.line === '9'
369+
params.row.line === '6' ||
370+
params.row.line === '8'
371371
) {
372372
classes.push('bold');
373373
}
374374

375375
// Add a top border to some lines
376-
if (params.row.line === '1' || params.row.line === '7') {
376+
if (params.row.line === '1' || params.row.line === '6') {
377377
classes.push('top-border');
378378
}
379379

src/components/HrTools/GoalCalculator/SummaryReport/MpdGoalStep/MpdGoalStepRightPanel/MpdGoalStepRightPanelAccordions/MpdGoalStepRightPanelAccordions.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ describe('MpdGoalStepRightPanelAccordion', () => {
1616
).toBeInTheDocument();
1717
expect(getByRole('button', { name: '2 Benefits' })).toBeInTheDocument();
1818
expect(
19-
getByRole('button', { name: '3 Ministry Expenses' }),
19+
getByRole('button', { name: '3A-J Ministry Expenses' }),
2020
).toBeInTheDocument();
2121
expect(
22-
getByRole('button', { name: '10 Support Goal Percentage Progress' }),
22+
getByRole('button', { name: '9 Support Goal Percentage Progress' }),
2323
).toBeInTheDocument();
2424
});
2525

src/components/HrTools/GoalCalculator/SummaryReport/MpdGoalStep/MpdGoalStepRightPanel/MpdGoalStepRightPanelAccordions/MpdGoalStepRightPanelAccordions.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,47 +107,47 @@ export const MpdGoalStepRightPanelAccordions: React.FC = () => {
107107
),
108108
},
109109
{
110-
line: '3',
110+
line: '3A-J',
111111
title: t('Ministry Expenses'),
112112
content: t(
113113
'Various ministry-related expenses including miles, travel, meetings, meals, MPD, supplies, summer assignments, medical expenses, account transfers, and other costs.',
114114
),
115115
},
116116
{
117-
line: '4',
117+
line: '3',
118118
title: t('Ministry Expenses Subtotal'),
119119
content: t('Sum of all ministry expenses plus benefits.'),
120120
},
121121
{
122-
line: '5',
122+
line: '4',
123123
title: t('Subtotal'),
124124
content: t('Overall subtotal before admin charge and attrition.'),
125125
},
126126
{
127-
line: '6',
127+
line: '5',
128128
title: t('Subtotal with admin charge'),
129129
content: t('Subtotal including the administrative charge percentage.'),
130130
hasSpace: true,
131131
},
132132
{
133-
line: '7',
133+
line: '6',
134134
title: t('Total Goal (with attrition)'),
135135
content: t(
136-
'Final total goal including attrition rate applied to line 6.',
136+
'Final total goal including attrition rate applied to line 5.',
137137
),
138138
},
139139
{
140-
line: '8',
140+
line: '7',
141141
title: t('Solid Monthly Support Developed'),
142142
content: t('Amount of monthly support already raised and committed.'),
143143
},
144144
{
145-
line: '9',
145+
line: '8',
146146
title: t('Monthly Support to be Developed'),
147147
content: t('Remaining monthly support needed to reach the total goal.'),
148148
},
149149
{
150-
line: '10',
150+
line: '9',
151151
title: t('Support Goal Percentage Progress'),
152152
content: t(
153153
'Percentage of the total goal that has been achieved through developed support.',

0 commit comments

Comments
 (0)