เพิ่มฟิว isretire

This commit is contained in:
Kittapath 2024-02-29 11:29:05 +07:00
parent 77b8ef8a7d
commit 8358ed8773
3 changed files with 37 additions and 9 deletions

View file

@ -121,10 +121,14 @@ export class SalaryPeriodController extends Controller {
const data = {
total: salaryOrg.total,
fifteenPercent: salaryOrg.fifteenPercent,
chosen: salaryOrg.salaryProfiles.filter((x) => x.posType == "FULL").length,
remaining:
salaryOrg.fifteenPercent -
salaryOrg.salaryProfiles.filter((x) => x.posType == "FULL").length,
chosen: salaryOrg.quantityUsed,
remaining: salaryOrg.remainQuota,
currentAmount: salaryOrg.currentAmount,
sixPercentAmount: salaryOrg.sixPercentAmount,
spentAmount: salaryOrg.spentAmount,
sixPercentSpentAmount: salaryOrg.sixPercentAmount - salaryOrg.spentAmount,
useAmount: salaryOrg.useAmount,
remainingAmount: salaryOrg.remainingAmount,
};
return new HttpSuccess(data);
}