award2
This commit is contained in:
parent
bb512232e8
commit
601626882f
|
@ -176,7 +176,7 @@ func (s *StaffSalary) Summary(month string, ctx *gin.Context) {
|
|||
item = append(item, cast.ToString(staff.SocialInsurence))
|
||||
item = append(item, cast.ToString(staff.PersonalTax))
|
||||
item = append(item, cast.ToString(staff.Holiday))
|
||||
item = append(item, cast.ToString(butil.FloatCut(staff.RealSalary-staff.SocialInsurence-staff.PersonalTax)))
|
||||
item = append(item, cast.ToString(butil.FloatCut(staff.RealSalary+staff.AwardSalary-staff.SocialInsurence-staff.PersonalTax)))
|
||||
|
||||
datas = append(datas, item)
|
||||
summary.BaseSalary += staff.BaseSalary
|
||||
|
@ -195,7 +195,7 @@ func (s *StaffSalary) Summary(month string, ctx *gin.Context) {
|
|||
datas = append(datas, []string{"合计", "-", "-", "-",
|
||||
cast.ToString(summary.BaseSalary), cast.ToString(summary.RealSalary), cast.ToString(summary.AwardSalary), cast.ToString(summary.SocialInsurence),
|
||||
cast.ToString(summary.PersonalTax), cast.ToString(summary.Holiday),
|
||||
cast.ToString(butil.FloatCut(summary.RealSalary - summary.SocialInsurence - summary.PersonalTax))})
|
||||
cast.ToString(butil.FloatCut(summary.RealSalary + summary.AwardSalary - summary.SocialInsurence - summary.PersonalTax))})
|
||||
|
||||
if xls != "" {
|
||||
filename := fmt.Sprintf("summary_%s.xlsx", time.Now().Format("20060102_150405"))
|
||||
|
|
Loading…
Reference in New Issue