Basic Salary
1
BASIC
none
code
result = payslip.paid_amount
Meal Vouchers
MEALEMPLOYEE
80
none
code
result_qty = 'WORK100' in worked_days and worked_days['WORK100'].number_of_days
result = version.l10n_sk_meal_voucher_employee
Meal Vouchers (Employer)
MEALEMPLOYER
81
none
code
result_qty = 'WORK100' in worked_days and worked_days['WORK100'].number_of_days
result = -version.l10n_sk_meal_voucher_employer
Taxable Salary
100
GROSS
none
code
result = categories['BASIC'] + categories['ALW']
Sickness Insurance
SICK
110
none
code
result = min(categories['GROSS'], payslip._rule_parameter('l10n_sk_monthly_taxable_max'))
result_rate = -1.4
Sickness Insurance (Employer)
SICKEMPLOYER
110
none
code
result = min(categories['GROSS'], payslip._rule_parameter('l10n_sk_monthly_taxable_max'))
result_rate = 1.4
Pension Contribution
PENSION
115
none
code
result = min(categories['GROSS'], payslip._rule_parameter('l10n_sk_monthly_taxable_max'))
result_rate = -4
Pension Contribution (Employer)
PENSIONEMPLOYER
115
none
code
result = min(categories['GROSS'], payslip._rule_parameter('l10n_sk_monthly_taxable_max'))
result_rate = 14
Disability Insurance
DISABILITY
120
none
code
result = min(categories['GROSS'], payslip._rule_parameter('l10n_sk_monthly_taxable_max'))
result_rate = -3
Disability Insurance (Employer)
DISABILITYEMPLOYER
120
none
code
result = min(categories['GROSS'], payslip._rule_parameter('l10n_sk_monthly_taxable_max'))
result_rate = 3
Unemployment Insurance
UNEMPLOYMENT
125
none
code
result = min(categories['GROSS'], payslip._rule_parameter('l10n_sk_monthly_taxable_max'))
result_rate = -1
Unemployment Insurance (Employer)
UNEMPLOYMENTEMPLOYER
125
none
code
result = min(categories['GROSS'], payslip._rule_parameter('l10n_sk_monthly_taxable_max'))
result_rate = 0.5
Insurance to Finance Support during Short-Time Work (Employer)
SHORTTIMEEMPLOYER
130
none
code
result = min(categories['GROSS'], payslip._rule_parameter('l10n_sk_monthly_taxable_max'))
result_rate = 0.5
Guarantee Insurance (Employer)
GUARANTEEEMPLOYER
135
none
code
result = min(categories['GROSS'], payslip._rule_parameter('l10n_sk_monthly_taxable_max'))
result_rate = 0.25
Accident Insurance (Employer)
ACCIDENT
140
none
code
result = categories['GROSS']
result_rate = 0.80
Reserve Fund (Employer)
RESERVEFUNDEMPLOYER
145
none
code
result = min(categories['GROSS'], payslip._rule_parameter('l10n_sk_monthly_taxable_max'))
result_rate = 4.75
Health Insurance
HEALTH
150
none
code
result = categories['GROSS']
result_rate = -4
Health Insurance (Employer)
HEALTHEMPLOYER
150
none
code
result = categories['GROSS']
result_rate = 10
Income Tax
INCOMETAX19
170
none
code
taxable = categories['GROSS']
already_taxed = payslip.search([
('employee_id', '=', payslip.employee_id.id),
('state', 'in', ['paid', 'validated']),
('date_from', '>=', payslip.date_from + relativedelta(day=1, month=1)),
('date_to', '<=', payslip.date_from + relativedelta(day=31, months=-1)),
])._get_line_values(['GROSS'], compute_sum=True)['GROSS']['sum']['total']
threshold = payslip._rule_parameter('l10n_sk_income_tax_threshold')
if already_taxed > threshold:
result = 0
else:
result = max(min(threshold - already_taxed, taxable), 0)
result_rate = -19
Income Tax
INCOMETAX25
170
none
code
taxable = categories['GROSS']
already_taxed = payslip.search([
('employee_id', '=', payslip.employee_id.id),
('state', 'in', ['paid', 'validated']),
('date_from', '>=', payslip.date_from + relativedelta(day=1, month=1)),
('date_to', '<=', payslip.date_from + relativedelta(day=31, months=-1)),
])._get_line_values(['GROSS'], compute_sum=True)['GROSS']['sum']['total']
threshold = payslip._rule_parameter('l10n_sk_income_tax_threshold')
if already_taxed > threshold:
result = taxable
else:
result = max(already_taxed + taxable - threshold, 0)
result_rate = -25
Attachment of Salary
174
ATTACH_SALARY
python
result = 'ATTACH_SALARY' in inputs
code
result = -inputs['ATTACH_SALARY'].amount
result_name = inputs['ATTACH_SALARY'].name
Assignment of Salary
174
ASSIG_SALARY
python
result = 'ASSIG_SALARY' in inputs
code
result = -inputs['ASSIG_SALARY'].amount
result_name = inputs['ASSIG_SALARY'].name
Child Support
CHILD_SUPPORT
code
174
python
result = 'CHILD_SUPPORT' in inputs
result = -inputs['CHILD_SUPPORT'].amount
result_name = inputs['CHILD_SUPPORT'].name
Deduction
198
DEDUCTION
python
result = 'DEDUCTION' in inputs
code
result = -inputs['DEDUCTION'].amount
result_name = inputs['DEDUCTION'].name
Reimbursement
199
REIMBURSEMENT
python
result = 'REIMBURSEMENT' in inputs
code
result = inputs['REIMBURSEMENT'].amount
result_name = inputs['REIMBURSEMENT'].name
Net Salary
200
NET
none
code
result = max(
0,
BASIC + categories['ALW'] + categories['DED']
- result_rules['MEALEMPLOYEE']['total'] - result_rules['MEALEMPLOYER']['total']
)
Social Security Total (Employee)
SOCIALEMPLOYEETOTAL
500
none
code
result = categories['SOCIALEMPLOYEE']
Social Security Total (Employer)
SOCIALEMPLOYERTOTAL
500
none
code
result = categories['SOCIALEMPLOYER']
Income Tax Total
INCOMETAXTOTAL
510
none
code
result = -categories['INCOMETAX']