Skip to content

Commit

Permalink
CM-919: added adjustments for benefit tab for group beneficiaries (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
sniedzielski authored Jun 6, 2024
1 parent 08799aa commit 28b09e6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/payroll/BenefitConsumptionPayrollSearcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ function BenefitConsumptionPayrollSearcher({
},
};
if (groupBeneficiaries !== null && groupBeneficiaries !== undefined) {
// TO-DO fetching benefits for group once enrollment of group flow will be developed
filters.benefit_Individual_Id = {
value: groupBeneficiaries?.group?.head?.uuid,
filter: `benefit_Individual_Id: "${groupBeneficiaries?.group?.head?.uuid}"`,
};
} else if (individualUuid !== null && individualUuid !== undefined) {
filters.benefit_Individual_Id = {
value: individualUuid,
Expand Down Expand Up @@ -137,6 +140,11 @@ function BenefitConsumptionPayrollSearcher({
`individualId: "${individualUuid}"`,
);
}
if (groupBeneficiaries) {
params.push(
`individualId: "${groupBeneficiaries?.group?.head?.uuid}"`,
);
}
if (benefitPlan?.id) {
params.push(
`benefitPlanUuid: "${benefitPlan.id}"`,
Expand Down

0 comments on commit 28b09e6

Please sign in to comment.