Skip to content

Commit

Permalink
Update comments, style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke committed Aug 18, 2023
1 parent 6d2b18a commit 3d1e4ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,6 @@ def test_multiple_benefit_per_application(mock_pdf_convert):
"893",
"1600",
"800",
"2493"
"2493",
),
)
9 changes: 1 addition & 8 deletions backend/benefit/calculator/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ class SalaryCostsRow(CalculationRow):
proxy_row_type = RowType.SALARY_COSTS_EUR
description_fi_template = "Palkkakustannukset / kk"

"""Calculate the amount of salary costs for the application.
"""Calculate the amount of salary costs for the application.
Notice that the vacation money is reported per month by the applicant."""

def calculate_amount(self):
Expand Down Expand Up @@ -570,7 +570,6 @@ class PaySubsidyMonthlyRow(CalculationRow):
* vacation money = 498,85
* 100% pay subsidy has been granted for 6 months
* Pay subsidy is calcuated using formula:
min(1800, (monthly_pay+additional_expenses)/0.8*0.65) + vacation_money/6/0.8*0.65
min(2020, (monthly_pay / work_time_fraction * 0.65) * 1.23
"""
MAX_WORK_TIME_FRACTION_FOR_FULL_PAY_SUBSIDY = decimal.Decimal("0.65")
Expand All @@ -582,12 +581,6 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

def calculate_amount(self):
"""
Rule regarding the vacation money:
"Palkkatuen enimmäismäärä yritykselle vuonna 2021 on 1400 €/kk, jonka lisäksi maksetaan enintään
palkkatukipäätöksen mukainen prosenttiosuus lomarahasta."
Therefore, the pay subsidy limit does not apply to the vacation_money
"""
"""
1.7.2023 voimaantulevan lain mukaan lomarahaa ja sivukuluja ei oteta enää huomioon palkkatuen määrää laskiessa
"""
Expand Down

0 comments on commit 3d1e4ee

Please sign in to comment.