Files
suite/l10n_ca_hr_payroll/models/common.py
2021-12-23 07:45:42 -08:00

26 lines
1.3 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# # Part of Hibou Suite Professional. See LICENSE_PROFESSIONAL file for full copyright and licensing details.
#
# def _compute_employee_contribution_deductions(payslip):
# # todo: _compute_employee_contribution_deductions
# return 0.0
#
# def _compute_annual_taxable_income(payslip):
# # A = Annual taxable income = [P × (I F F2 U1 )] HD F1
# # # If the result is negative, T = L.
# # annual_taxable_income = (
# # annual_pay_periods_p
# # *(
# # gross_remuneration_i
# # - employee_contribution_deductions_f
# # - required_deductions_f2
# # - union_dues_u1
# # )
# # - prescribed_zone_hd
# # - employee_requested_deduction_f1
# # )
# pay_periods = payslip.dict.get_pay_periods_in_year()
# annual_pay_periods_p = pay_periods[payslip.contract_id.schedule_pay]
# gross_remuneration_i = annual_pay_periods_p * payslip.contract_id.wage
# employee_contribution_deductions_f = _compute_employee_contribution_deductions(payslip)
# required_deductions_f2 = _compute_employee_contribution_deductions(payslip)
# pass