แก้ไข การคำนวณ

This commit is contained in:
LAPTOP-KB8JC2K2\acer
2021-07-09 12:32:34 +07:00
parent 15c1ec9841
commit 5f69d9c1df
4 changed files with 14 additions and 10 deletions

View File

@@ -256,9 +256,9 @@ namespace TodoAPI2.Models
_repository.Context.AddRange(result_frame_group);
_repository.Context.AddRange(result_frame_employee);
entity.total_salary = all_all_emp.Sum(z => z.salary);
entity.limit_frame_005_total = entity.total_salary * entity.limit_frame_005 / 100;
entity.limit_frame_005_total_rounded = MyHelper.RoundOff(entity.limit_frame_005_total.Value, 10);
//entity.total_salary = all_all_emp.Sum(z => z.salary);
//entity.limit_frame_005_total = entity.total_salary * entity.limit_frame_005 / 100;
//entity.limit_frame_005_total_rounded = MyHelper.RoundOff(entity.limit_frame_005_total.Value, 10);
entity.SetAutoField(_repository.Context);