Basic Salary
1
BASIC
none
code
result = payslip.paid_amount
Housing Allowance
HOU
2
none
code
result = version.l10n_eg_housing_allowance
Transportation Allowance
TA
3
code
result = version.l10n_eg_transportation_allowance
Other Allowances
OA
4
code
result = version.l10n_eg_other_allowances
Out of Contract Days Deduction
OUT
10
python
result = 'OUT' in worked_days
code
number_of_days_in_month = (payslip.date_to - payslip.date_from).days + 1
salary = categories['BASIC'] + categories['ALW']
result = - worked_days['OUT'].number_of_days * (salary / number_of_days_in_month)
NOSI - Company Contribution
SICOMP
20
code
result = version.l10n_eg_social_insurance_reference
result_rate = 18.75
NOSI - Employee Contribution
SIEMP
25
code
result = version.l10n_eg_social_insurance_reference
result_rate = -11
Unpaid Leave Deduction
EGLEAVE90
30
python
result = 'LEAVE90' in worked_days
code
daily_salary = (categories['BASIC'] + categories['BASICALW']) / 30
result = -(worked_days['LEAVE90'].number_of_days * daily_salary)
Sick Leave Deduction (75% Paid)
EGSICKLEAVE75
35
python
result = 'EGSICKLEAVE75' in worked_days
code
salary = categories['BASIC'] + categories['BASICALW']
result = -worked_days['EGSICKLEAVE75'].number_of_days * (salary / 30) * 0.25
Sick Leave Deduction (Un-Paid)
EGSICKLEAVE0
37
python
result = 'EGSICKLEAVE0' in worked_days
code
salary = categories['BASIC'] + categories['BASICALW']
result = - worked_days['EGSICKLEAVE0'].number_of_days * (salary / 30)
OverTime Weekdays Daytime
OVTWD
40
python
result = 'OVTWD' in inputs and inputs['OVTWD'].amount and version.resource_calendar_id.hours_per_day
code
salary = categories['BASIC'] + categories['BASICALW']
result = 1.35 * inputs['OVTWD'].amount * salary / ((payslip.date_to - payslip.date_from).days + 1) / \
version.resource_calendar_id.hours_per_day
OverTime Weekdays Nighttime
OVTWDN
40
python
result = 'OVTWDN' in inputs and inputs['OVTWDN'].amount and version.resource_calendar_id.hours_per_day
code
salary = categories['BASIC'] + categories['BASICALW']
result = 1.70 * inputs['OVTWDN'].amount * salary / ((payslip.date_to - payslip.date_from).days + 1) / \
version.resource_calendar_id.hours_per_day
OverTime Weekends/Public holidays
OVTWEND
40
python
result = 'OVTPUB' in inputs and inputs['OVTPUB'].amount and version.resource_calendar_id.hours_per_day
code
salary = categories['BASIC'] + categories['BASICALW']
result = 2 * inputs['OVTPUB'].amount * salary / ((payslip.date_to - payslip.date_from).days + 1) / \
version.resource_calendar_id.hours_per_day
End of Service Provision
EOSP
45
python
result = employee.departure_date and version.l10n_eg_number_of_days
code
result = (version.l10n_eg_number_of_days / 12) * ((categories['BASIC'] + categories['BASICALW']) / 30)
Annual Leave Provision
ANNUALP
50
none
code
salary = categories['BASIC'] + categories['BASICALW']
result = (salary / 30) * version.l10n_eg_total_leave_days / 12
Annual Leave Compensation
ANNUALCOMP
55
python
result = employee.departure_date and employee.departure_reason_id and employee._l10n_eg_get_annual_remaining_leaves()[employee.id] > 0
code
daily_salary = (categories['BASIC'] + categories['BASICALW']) / 30
result = daily_salary * employee._l10n_eg_get_annual_remaining_leaves()[employee.id]
End of Service Benefit
EOSB
60
python
result = employee.departure_date and version.l10n_eg_total_number_of_days
code
compensation = categories['BASIC'] + categories['BASICALW']
result = (compensation / 30) * (version.l10n_eg_total_number_of_days)
Taxable Salary
70
GROSS
none
code
result = categories['BASIC'] + categories['ALW']
Gross Salary Yearly
GROSSY
75
code
result = (GROSS + categories['DED']) * 12
Taxable Amount
TAXBLEAM
80
code
personal_exemption = payslip._rule_parameter('l10n_eg_lower_boundary')
result = max(0, GROSSY - personal_exemption)
Total Income Tax Deduction
TOTTB
90
code
result = -payslip._get_eg_tax(TAXBLEAM) / 12
Attachment of Salary
110
ATTACH_SALARY
python
result = 'ATTACH_SALARY' in inputs
code
result = -inputs['ATTACH_SALARY'].amount
result_name = inputs['ATTACH_SALARY'].name
Assignment of Salary
110
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
110
python
result = 'CHILD_SUPPORT' in inputs
result = -inputs['CHILD_SUPPORT'].amount
result_name = inputs['CHILD_SUPPORT'].name
Deduction
110
DEDUCTION
python
result = 'DEDUCTION' in inputs
code
result = -inputs['DEDUCTION'].amount
result_name = inputs['DEDUCTION'].name
Reimbursement
110
REIMBURSEMENT
python
result = 'REIMBURSEMENT' in inputs
code
result = inputs['REIMBURSEMENT'].amount
result_name = inputs['REIMBURSEMENT'].name
Expenses Reimbursement
EXPENSES
110
python
result = 'EXPENSES' in inputs
code
result = inputs['EXPENSES'].amount
result_name = inputs['EXPENSES'].name
Net Salary
400
NET
none
code
result = categories['BASIC'] + categories['ALW'] + categories['DED']