Merge branch 'develop' of github.com:Frappet/bma-ehr-organization into develop
This commit is contained in:
commit
b94c5c2f09
3 changed files with 13 additions and 3 deletions
|
|
@ -3590,8 +3590,8 @@ export class CommandController extends Controller {
|
||||||
});
|
});
|
||||||
if (
|
if (
|
||||||
orgRevision != null &&
|
orgRevision != null &&
|
||||||
!["REPORT"].includes(
|
!["REPORT", "DONE"].includes(
|
||||||
orgRevision.posMasters.find((x) => x.statusReport === "REPORT")?.statusReport || "",
|
orgRevision.posMasters.find((x) => x.statusReport === "REPORT" || x.statusReport === "DONE")?.statusReport || "",
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
await this.orgRevisionRepo.update(orgRevision.id, {
|
await this.orgRevisionRepo.update(orgRevision.id, {
|
||||||
|
|
|
||||||
|
|
@ -131,6 +131,11 @@ export class ProfileSalaryController extends Controller {
|
||||||
history.profileSalaryId = data.id;
|
history.profileSalaryId = data.id;
|
||||||
await this.salaryHistoryRepo.save(history, { data: req });
|
await this.salaryHistoryRepo.save(history, { data: req });
|
||||||
|
|
||||||
|
let null_:any = null;
|
||||||
|
profile.amount = body.amount ?? null_;
|
||||||
|
profile.positionSalaryAmount = body.positionSalaryAmount ?? null_;
|
||||||
|
profile.mouthSalaryAmount = body.mouthSalaryAmount ?? null_;
|
||||||
|
await this.profileRepo.save(profile);
|
||||||
return new HttpSuccess();
|
return new HttpSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,12 @@ export class ProfileSalaryEmployeeController extends Controller {
|
||||||
setLogDataDiff(req, { before, after: data });
|
setLogDataDiff(req, { before, after: data });
|
||||||
history.profileSalaryId = data.id;
|
history.profileSalaryId = data.id;
|
||||||
await this.salaryHistoryRepo.save(history, { data: req });
|
await this.salaryHistoryRepo.save(history, { data: req });
|
||||||
|
|
||||||
|
let null_:any = null;
|
||||||
|
profile.amount = body.amount ?? null_;
|
||||||
|
profile.positionSalaryAmount = body.positionSalaryAmount ?? null_;
|
||||||
|
profile.mouthSalaryAmount = body.mouthSalaryAmount ?? null_;
|
||||||
|
await this.profileRepo.save(profile);
|
||||||
return new HttpSuccess();
|
return new HttpSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue