calculate
This commit is contained in:
parent
cdb2950ccc
commit
1613c16c9d
|
@ -72,7 +72,7 @@ func (s *StaffSalary) CalcSalary(salary *model.StaffSalary, month string) (*mode
|
||||||
salary.HouseDeduct = goutil.If(userConfig.HouseDeduct != "", cast.ToFloat64(userConfig.HouseDeduct), cast.ToFloat64(corpConfig.HouseDeduct))
|
salary.HouseDeduct = goutil.If(userConfig.HouseDeduct != "", cast.ToFloat64(userConfig.HouseDeduct), cast.ToFloat64(corpConfig.HouseDeduct))
|
||||||
|
|
||||||
//计算工资
|
//计算工资
|
||||||
|
s.calculate(corp, salary)
|
||||||
s.formatFloat(salary)
|
s.formatFloat(salary)
|
||||||
return salary, nil
|
return salary, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue