This commit is contained in:
AdisakKanthawilang 2025-04-11 12:29:59 +07:00
parent eef29b7564
commit ffca4ee36d
2 changed files with 13 additions and 5 deletions

View file

@ -8828,6 +8828,7 @@ export class ReportController extends Controller {
commandNo: v.commandNo,
commandYear: v.commandYear,
commandId: v.commandId,
salaryLevel: salary.salaryLevel && salary.salaryLevelNew ? salary.salaryLevelNew : salary.salaryLevel,
})
.then(async () => {
const before = null;

View file

@ -1570,11 +1570,18 @@ export class SalaryPeriodController extends Controller {
type: body.type == null ? "" : `${body.type.toUpperCase()}`,
})
.andWhere(
body.isRetire != null
? body.isRetire == "1"
? `profile.isRetired = true`
: `profile.isRetired = false`
: "1=1",
// body.isRetire != null
// ? body.isRetire == "1"
// ? `profile.isRetired = true`
// : `profile.isRetired = false`
// : "1=1",
body.isRetire == null
? `profile.isRetired = false`
: body.isRetire == "1"
? `profile.isRetired = true`
: body.isRetire == "0"
? `profile.isRetired = false`
: "1=1",
)
.andWhere({
salaryOrgId: salaryOrg.id,