Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDudley committed Feb 4, 2025
1 parent ddb0f15 commit fcb2c6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions payroll/services/payroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ def update_all_employee_pay_periods() -> None:

class PayrollForecast(MonthsDict[int]):
programme_code: str
natural_account_code: str
natural_account_code: int


def payroll_forecast_report(
cost_centre: CostCentre, financial_year: FinancialYear
) -> Iterator[PayrollForecast]:
# { programme_code: { natural_account_code: np.array[ np.float64 ] } }
report: dict[str, dict[str, npt.NDArray[np.float64]]] = defaultdict(
report: dict[str, dict[int, npt.NDArray[np.float64]]] = defaultdict(
lambda: defaultdict(lambda: np.zeros(12))
)

Expand Down
4 changes: 2 additions & 2 deletions payroll/tests/services/test_payroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def test_scenario_update_forecast(db):
financial_code_salary = FinancialCodeFactory(
cost_centre=cost_centre,
programme=programme_code,
natural_account_code__natural_account_code="71111001",
natural_account_code__natural_account_code=SALARY_NAC,
)

financial_year = FinancialYear.objects.current()
Expand All @@ -274,7 +274,7 @@ def test_scenario_update_forecast(db):

payroll_forecast = PayrollForecast(
programme_code=programme_code,
natural_account_code="71111001",
natural_account_code=SALARY_NAC,
**expected_forecast,
)

Expand Down

0 comments on commit fcb2c6e

Please sign in to comment.