Skip to content

Commit

Permalink
CM-779: added block for processing group benefit
Browse files Browse the repository at this point in the history
  • Loading branch information
sniedzielski committed Mar 19, 2024
1 parent 7727b6b commit d09afa9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/payroll/BenefitConsumptionPayrollSearcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function BenefitConsumptionPayrollSearcher({
benefitsSummary,
individualUuid,
benefitPlan,
groupBeneficiaries,
}) {
const modulesManager = useModulesManager();
const { formatMessage, formatMessageWithValues } = useTranslations('payroll', modulesManager);
Expand Down Expand Up @@ -104,7 +105,9 @@ function BenefitConsumptionPayrollSearcher({
'isDeleted: false',
},
};
if (individualUuid !== null && individualUuid !== undefined) {
if (groupBeneficiaries !== null && groupBeneficiaries !== undefined) {
// TO-DO fetching benefits for group once enrollment of group flow will be developed
} else if (individualUuid !== null && individualUuid !== undefined) {
filters.benefit_Individual_Id = {
value: individualUuid,
filter: `benefit_Individual_Id: "${individualUuid}"`,
Expand Down

0 comments on commit d09afa9

Please sign in to comment.