mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
FIX 'l10n_us_ia_hr_payroll` missing mothnly allowance per standard deduction
This commit is contained in:
@@ -69,7 +69,7 @@ standard_deduction_table = {
|
|||||||
'semi-monthly': (70.42, 173.33),
|
'semi-monthly': (70.42, 173.33),
|
||||||
'monthly': (140.83, 346.67),
|
'monthly': (140.83, 346.67),
|
||||||
'annually': (1690.00, 4160.00)}
|
'annually': (1690.00, 4160.00)}
|
||||||
t2 = t1 - standard_deduction_table[schedule_pay][0] if allowances < 2 else standard_deduction_table[schedule_pay][1]
|
t2 = t1 - standard_deduction_table[schedule_pay][0] if (allowances < 2) else standard_deduction_table[schedule_pay][1]
|
||||||
# IMPORTANT -- ALL RATES ARE ALREADY DIVIDED BY 100 -> 8.53% is in the table as 0.0853
|
# IMPORTANT -- ALL RATES ARE ALREADY DIVIDED BY 100 -> 8.53% is in the table as 0.0853
|
||||||
if schedule_pay == 'weekly':
|
if schedule_pay == 'weekly':
|
||||||
tax_rate_table = [
|
tax_rate_table = [
|
||||||
@@ -136,7 +136,7 @@ t3 = 0.0
|
|||||||
last = 0.0
|
last = 0.0
|
||||||
for row in tax_rate_table:
|
for row in tax_rate_table:
|
||||||
cap, rate, flat_fee = row
|
cap, rate, flat_fee = row
|
||||||
if cap > t2:
|
if cap > t2:
|
||||||
taxed_amount = t2 - last
|
taxed_amount = t2 - last
|
||||||
t3 = flat_fee + (rate * taxed_amount)
|
t3 = flat_fee + (rate * taxed_amount)
|
||||||
break
|
break
|
||||||
@@ -146,8 +146,9 @@ deduction_per_allowance = {
|
|||||||
'daily': 0.15,
|
'daily': 0.15,
|
||||||
'weekly': 0.77,
|
'weekly': 0.77,
|
||||||
'bi-weekly': 1.54,
|
'bi-weekly': 1.54,
|
||||||
'semi-monthly': 3.33,
|
'semi-monthly': 1.67,
|
||||||
'annually': 40.00
|
'monthly': 3.33,
|
||||||
|
'annually': 40.00,
|
||||||
}
|
}
|
||||||
t4 = t3 - (deduction_per_allowance[schedule_pay] * allowances)
|
t4 = t3 - (deduction_per_allowance[schedule_pay] * allowances)
|
||||||
t5 = t4 + contract.ia_w4_additional_wh
|
t5 = t4 + contract.ia_w4_additional_wh
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<data>
|
<data>
|
||||||
<record id="hr_contract_form_l10n_us_ia_inherit" model="ir.ui.view">
|
<record id="hr_contract_form_l10n_us_ia_inherit" model="ir.ui.view">
|
||||||
<field name="name">hr.contract.form.inherit</field>
|
<field name="name">hr.contract.form.inherit</field>
|
||||||
@@ -19,4 +20,5 @@
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
Reference in New Issue
Block a user