This commit is contained in:
gsinghpal
2026-04-07 20:49:21 -04:00
parent 3cc93b8783
commit 4fde4c7bd1
25 changed files with 1253 additions and 900 deletions

View File

@@ -182,7 +182,7 @@ class HrTaxRemittance(models.Model):
# Find all confirmed payslips in the period
payslips = self.env['hr.payslip'].search([
('company_id', '=', self.company_id.id),
('state', 'in', ['validated', 'paid']),
('state', 'in', ['done', 'paid']),
('date_from', '>=', self.period_start),
('date_to', '<=', self.period_end),
])
@@ -212,7 +212,7 @@ class HrTaxRemittance(models.Model):
ei_ee += amount
elif code == 'EI_ER':
ei_er += amount
elif code in ('FED_TAX', 'PROV_TAX'):
elif code in ('FED_TAX', 'PROV_TAX', 'OHP'):
income_tax += amount
self.write({