Skip to content

Commit

Permalink
[FIX] pre-commit ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
hapolinario committed May 13, 2024
1 parent 8474724 commit 0914b63
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions payroll/models/hr_salary_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ class HrSalaryRule(models.Model):
# inputs: object containing the computed inputs.
# payroll: object containing miscellaneous values related to payroll
# current_contract: object with values calculated from the current contract
# result_rules: object with a dict of qty, rate, amount an total of calculated rules # noqa: E501
# tools: object that contain libraries and tools that can be used in calculations # noqa: E501
# result_rules: object with a dict of qty, rate, amount an total of calculated rules
# tools: object that contain libraries and tools that can be used in calculations
# Available compute variables:
#-------------------------------
Expand All @@ -86,7 +86,7 @@ class HrSalaryRule(models.Model):
#-------------------------------
# result = worked_days.WORK0 and worked_days.WORK0.number_of_days > 0
""",
""", # noqa: E501
help="Applied this rule for calculation if condition is true. You can "
"specify condition like basic > 1000.",
)
Expand Down Expand Up @@ -130,21 +130,21 @@ class HrSalaryRule(models.Model):
# inputs: object containing the computed inputs.
# payroll: object containing miscellaneous values related to payroll
# current_contract: object with values calculated from the current contract
# result_rules: object with a dict of qty, rate, amount an total of calculated rules # noqa: E501
# tools: object that contain libraries and tools that can be used in calculations # noqa: E501
# result_rules: object with a dict of qty, rate, amount an total of calculated rules
# tools: object that contain libraries and tools that can be used in calculations
# Available compute variables:
#-------------------------------
# result: returned value have to be set in the variable 'result'
# result_rate: the rate that will be applied to "result".
# result_qty: the quantity of units that will be multiplied to "result".
# result_name: if this variable is computed, it will contain the name of the line. # noqa: E501
# result_name: if this variable is computed, it will contain the name of the line.
# Example:
#-------------------------------
# result = contract.wage * 0.10
""",
""", # noqa: E501
)
amount_percentage_base = fields.Char(
string="Percentage based on", help="result will be affected to a variable"
Expand Down

0 comments on commit 0914b63

Please sign in to comment.