แก้snapshot

This commit is contained in:
Kittapath 2024-04-04 18:57:18 +07:00
parent 2d68472500
commit 80daf64940
2 changed files with 14 additions and 3 deletions

View file

@ -294,6 +294,7 @@ export class SalaryPeriodEmployeeController extends Controller {
where: {
id: _salaryProfile.salaryOrg.id,
},
relations: { salaryProfiles: true },
});
if (salaryOrg != null) {
const totalProfile = Extension.sumObjectValues(salaryOrg.salaryProfiles, "amount");
@ -742,6 +743,7 @@ export class SalaryPeriodEmployeeController extends Controller {
where: {
id: _salaryProfile.salaryOrg.id,
},
relations: { salaryProfiles: true },
});
if (salaryOrg != null) {
const totalProfile = Extension.sumObjectValues(salaryOrg.salaryProfiles, "amount");
@ -860,6 +862,7 @@ export class SalaryPeriodEmployeeController extends Controller {
where: {
id: _salaryProfile.salaryOrg.id,
},
relations: { salaryProfiles: true },
});
if (salaryOrg != null) {
const totalProfile = Extension.sumObjectValues(salaryOrg.salaryProfiles, "amount");
@ -1342,6 +1345,7 @@ export class SalaryPeriodEmployeeController extends Controller {
where: {
id: _salaryProfile.salaryOrg.id,
},
relations: { salaryProfiles: true },
});
if (salaryOrg != null) {
const totalProfile = Extension.sumObjectValues(salaryOrg.salaryProfiles, "amount");
@ -1995,6 +1999,7 @@ export class SalaryPeriodEmployeeController extends Controller {
where: {
id: _salaryProfile.salaryOrg.id,
},
relations: { salaryProfiles: true },
});
if (salaryOrg != null) {
const totalProfile = Extension.sumObjectValues(salaryOrg.salaryProfiles, "amount");