update profile.amount & fix lock

This commit is contained in:
Bright 2024-11-15 13:48:24 +07:00
parent 93b0dff070
commit 5ac8da1057
3 changed files with 13 additions and 3 deletions

View file

@ -3590,8 +3590,8 @@ export class CommandController extends Controller {
});
if (
orgRevision != null &&
!["REPORT"].includes(
orgRevision.posMasters.find((x) => x.statusReport === "REPORT")?.statusReport || "",
!["REPORT", "DONE"].includes(
orgRevision.posMasters.find((x) => x.statusReport === "REPORT" || x.statusReport === "DONE")?.statusReport || "",
)
) {
await this.orgRevisionRepo.update(orgRevision.id, {