ปรับปรุงการคำนวณยอดรวมเงินเดือน
This commit is contained in:
@@ -256,6 +256,10 @@ 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.SetAutoField(_repository.Context);
|
||||
|
||||
if (is_force_save)
|
||||
|
||||
Reference in New Issue
Block a user