แก้บัคเงินเดือน
This commit is contained in:
parent
0467013f14
commit
36155a1a1c
2 changed files with 11 additions and 1 deletions
|
|
@ -309,6 +309,7 @@ export class SalaryPeriodController extends Controller {
|
|||
where: {
|
||||
id: _salaryProfile.salaryOrg.id,
|
||||
},
|
||||
relations: { salaryProfiles: true },
|
||||
});
|
||||
if (salaryOrg != null) {
|
||||
const amountFullType = await this.salaryProfileRepository.count({
|
||||
|
|
@ -586,6 +587,7 @@ export class SalaryPeriodController extends Controller {
|
|||
where: {
|
||||
id: _salaryProfile.salaryOrg.id,
|
||||
},
|
||||
relations: { salaryProfiles: true },
|
||||
});
|
||||
if (salaryOrg != null) {
|
||||
const amountFullType = await this.salaryProfileRepository.count({
|
||||
|
|
@ -704,6 +706,7 @@ export class SalaryPeriodController extends Controller {
|
|||
where: {
|
||||
id: _salaryProfile.salaryOrg.id,
|
||||
},
|
||||
relations: { salaryProfiles: true },
|
||||
});
|
||||
if (salaryOrg != null) {
|
||||
const amountFullType = await this.salaryProfileRepository.count({
|
||||
|
|
@ -1012,6 +1015,7 @@ export class SalaryPeriodController extends Controller {
|
|||
where: {
|
||||
id: _salaryProfile.salaryOrg.id,
|
||||
},
|
||||
relations: { salaryProfiles: true },
|
||||
});
|
||||
if (salaryOrg != null) {
|
||||
const amountFullType = await this.salaryProfileRepository.count({
|
||||
|
|
@ -1441,6 +1445,7 @@ export class SalaryPeriodController extends Controller {
|
|||
where: {
|
||||
id: _salaryProfile.salaryOrg.id,
|
||||
},
|
||||
relations: { salaryProfiles: true },
|
||||
});
|
||||
if (salaryOrg != null) {
|
||||
const amountFullType = await this.salaryProfileRepository.count({
|
||||
|
|
@ -1770,7 +1775,7 @@ export class SalaryPeriodController extends Controller {
|
|||
if (SalaryPeriod?.period == "SPECIAL") {
|
||||
const SalaryOrg = await this.salaryOrgRepository.find({
|
||||
where: { salaryPeriodId: SalaryPeriod.id },
|
||||
relations: ["salaryProfiles"],
|
||||
relations: { salaryProfiles: true },
|
||||
});
|
||||
const salaryProfile = SalaryOrg.find((x) => x.salaryProfiles.length > 0);
|
||||
if (salaryProfile) throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่สามารถลบได้");
|
||||
|
|
|
|||
|
|
@ -271,6 +271,7 @@ export class SalaryPeriodEmployeeController extends Controller {
|
|||
where: {
|
||||
id: _salaryProfile.salaryOrg.id,
|
||||
},
|
||||
relations: { salaryProfiles: true },
|
||||
});
|
||||
if (salaryOrg != null) {
|
||||
const amountFullType = await this.salaryProfileRepository.count({
|
||||
|
|
@ -720,6 +721,7 @@ export class SalaryPeriodEmployeeController extends Controller {
|
|||
where: {
|
||||
id: _salaryProfile.salaryOrg.id,
|
||||
},
|
||||
relations: { salaryProfiles: true },
|
||||
});
|
||||
if (salaryOrg != null) {
|
||||
const amountFullType = await this.salaryProfileRepository.count({
|
||||
|
|
@ -839,6 +841,7 @@ export class SalaryPeriodEmployeeController extends Controller {
|
|||
where: {
|
||||
id: _salaryProfile.salaryOrg.id,
|
||||
},
|
||||
relations: { salaryProfiles: true },
|
||||
});
|
||||
if (salaryOrg != null) {
|
||||
const amountFullType = await this.salaryProfileRepository.count({
|
||||
|
|
@ -1322,6 +1325,7 @@ export class SalaryPeriodEmployeeController extends Controller {
|
|||
where: {
|
||||
id: _salaryProfile.salaryOrg.id,
|
||||
},
|
||||
relations: { salaryProfiles: true },
|
||||
});
|
||||
if (salaryOrg != null) {
|
||||
const amountFullType = await this.salaryProfileRepository.count({
|
||||
|
|
@ -1976,6 +1980,7 @@ export class SalaryPeriodEmployeeController extends Controller {
|
|||
where: {
|
||||
id: _salaryProfile.salaryOrg.id,
|
||||
},
|
||||
relations: { salaryProfiles: true },
|
||||
});
|
||||
if (salaryOrg != null) {
|
||||
const amountFullType = await this.salaryProfileRepository.count({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue