Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

Hi,

Hoping that this would be helpful to others looking to create a monthly salary deduction for income tax on annual salary slabs.  

In this code there is no tax up to an annual salary of 600,000 and following that there are different percentages for different slabs from 0.05% to 35%. 

***********************

Monthly = contract.wage
Months = 12
BASIC = (Monthly*Months)
tax = 0
if (BASIC <= 600000):
tax = 0 
elif (BASIC > 600000) and (BASIC <= 1200000):
tax = (BASIC-600000) * 0.05
elif (BASIC > 1200000) and (BASIC <= 1800000):
tax = ((BASIC-1200000) * 0.1)+30000 
elif (BASIC > 1800000) and (BASIC <= 2500000):
tax = ((BASIC-1800000) * 0.15)+90000 
elif (BASIC > 2500000) and (BASIC <= 3500000):
tax = ((BASIC-2500000) * 0.175)+195000
elif (BASIC > 3500000) and (BASIC <= 5000000):
tax = ((BASIC-3500000) * 0.2)+370000
elif (BASIC > 5000000) and (BASIC <= 8000000):
tax = ((BASIC-5000000) * 0.225)+670000 
elif (BASIC > 8000000) and (BASIC <= 12000000):
tax = ((BASIC-8000000) * 0.25)+1345000
elif (BASIC > 12000000) and (BASIC <= 30000000):
tax = ((BASIC-12000000) * 0.275)+2345000
elif (BASIC > 30000000) and (BASIC <= 50000000):
tax = ((BASIC-30000000) * 0.3)+7295000 
elif (BASIC > 50000000) and (BASIC <= 75000000):
tax = ((BASIC-50000000) * 0.325)+13295000
elif (BASIC > 75000000):
tax = ((BASIC-75000000) * 0.35)+21420000 
result = -(tax/Months)

**********************************


Avatar
Buang
Jawaban Terbai

Hi i have find out a module which defines tax slabs and then automatically added on the payroll this might help 
https://apps.odoo.com/apps/modules/15.0/payroll_income_tax_slabs/

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jun 19
3351
0
Mar 15
4592
2
Des 24
2273
0
Feb 24
1690
2
Jul 22
5393