report gov2 02

This commit is contained in:
Kittapath 2024-03-20 19:30:13 +07:00
parent dc8b7f815a
commit 1a354baf68
3 changed files with 91 additions and 36 deletions

View file

@ -1121,6 +1121,7 @@ export class SalaryPeriodEmployeeController extends Controller {
} else if (salaryOrg.salaryPeriod.period == "OCT") {
const totalProfile = Extension.sumObjectValues(salaryOrg.salaryProfiles, "amount");
_salaryOrg.currentAmount = totalProfile;
_salaryOrg.total = salaryOrg.salaryProfiles.length;
_salaryOrg.sixPercentAmount = totalProfile * 0.06;
const sumAmountUse = await AppDataSource.getRepository(SalaryProfileEmployee)