添加功能
This commit is contained in:
@@ -193,7 +193,7 @@ class InheritHrPayslip(models.Model):
|
||||
"target": "new",
|
||||
}
|
||||
|
||||
@api.depends('line_ids','year_compute', 'year_jie', 'year_gong', 'jing_te')
|
||||
@api.depends('line_ids','year_compute', 'year_jie', 'year_gong', 'jing_te', 'based_pay', 'study_on')
|
||||
def _compute_total_before_tax(self):
|
||||
common_records = self.env['yuthon.payroll.common'].search([('before_tax', '=', True)])
|
||||
name_list = [record.name for record in common_records]
|
||||
@@ -202,7 +202,7 @@ class InheritHrPayslip(models.Model):
|
||||
for line in record.line_ids:
|
||||
if line.name in name_list:
|
||||
total += line.total
|
||||
record.total_before_tax = total + record.base_salary + record.performance_bonuses + record.rank_salary + record.year_compute + record.year_jie + record.year_gong + record.jing_te + record.high_temperature_allowance
|
||||
record.total_before_tax = total + record.base_salary + record.performance_bonuses + record.rank_salary + record.year_compute + record.year_jie + record.year_gong + record.jing_te + record.high_temperature_allowance + record.based_pay +record.study_on
|
||||
|
||||
def put_button(self):
|
||||
for record in self:
|
||||
|
||||
Reference in New Issue
Block a user