Skip to content

Commit

Permalink
Use periods property on PayModifier
Browse files Browse the repository at this point in the history
  • Loading branch information
CaitBarnard committed Dec 17, 2024
1 parent b4cb1a0 commit a9771fc
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions payroll/services/payroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,23 +345,7 @@ def get_pay_modifiers_data(
financial_year=financial_year,
)
for obj in qs:
yield PayModifiers(
id=obj.pk,
pay_modifiers=[
obj.apr,
obj.may,
obj.jun,
obj.jul,
obj.aug,
obj.sep,
obj.oct,
obj.nov,
obj.dec,
obj.jan,
obj.feb,
obj.mar,
],
)
yield PayModifiers(id=obj.pk, pay_modifiers=obj.periods)


@transaction.atomic
Expand Down

0 comments on commit a9771fc

Please sign in to comment.