Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4231 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
čvn 19
3356
0
bře 15
4596
2
pro 24
2277
0
úno 24
1696
2
čvc 22
5409