IMP l10n_us_nc_hr_payroll module to reflect the proper use of the wage cap and to test if amounts over the wage cap were being withheld correctly.

This commit is contained in:
David Frick
2019-07-11 15:49:43 -04:00
parent 097c42fc6b
commit 111a35a791
3 changed files with 6 additions and 10 deletions

View File

@@ -14,7 +14,7 @@
<field name="amount_python_compute">
rate = payslip.dict.get_rate('US_NC_UNEMP')
year = int(payslip.dict.date_to[:4])
ytd = payslip.sum('NC_UNEMP_WAGES_2018', str(year) + '-01-01', str(year+1) + '-01-01')
ytd = payslip.sum('WAGE_US_NC_UNEMP', str(year) + '-01-01', str(year+1) + '-01-01')
ytd += contract.external_wages
remaining = rate.wage_limit_year - ytd
if remaining &lt;= 0.0: