คำสั่งยกเลิก

This commit is contained in:
mamoss 2025-04-03 16:40:19 +07:00
parent 4b7ca5fbf4
commit a17ca1a7d8
2 changed files with 5 additions and 5 deletions

View file

@ -667,9 +667,9 @@ export class CommandController extends Controller {
*/
@Delete("tab2Cancel17/{refId}")
async DeleteTab2Cancel17(@Path() refId: string, @Request() request: RequestWithUser) {
await new permission().PermissionUpdate(request, "COMMAND");
// await new permission().PermissionUpdate(request, "COMMAND");
const commandRecive = await this.commandReciveRepository.findOne({
where: { refId: refId, command: { commandType: { commandCode: "C-PM-17" } } },
where: { refId: refId, command: { commandType: { code: "C-PM-17" } } },
relations: ["command", "command.commandType"],
});
if (!commandRecive) {
@ -711,9 +711,9 @@ export class CommandController extends Controller {
*/
@Delete("tab2Cancel23/{refId}")
async DeleteTab2Cancel23(@Path() refId: string, @Request() request: RequestWithUser) {
await new permission().PermissionUpdate(request, "COMMAND");
// await new permission().PermissionUpdate(request, "COMMAND");
const commandRecive = await this.commandReciveRepository.findOne({
where: { refId: refId, command: { commandType: { commandCode: "C-PM-23" } } },
where: { refId: refId, command: { commandType: { code: "C-PM-23" } } },
relations: ["command", "command.commandType"],
});
if (!commandRecive) {

View file

@ -2530,7 +2530,7 @@ export class ImportDataController extends Controller {
.toISOString()
.replace("T", " ")
.substring(0, 19);
profileSalary.remark = item.SalaryRef + item.PositionName;
profileSalary.remark = `${item.SalaryRef} ${item.PositionName}`;
profileSalary.amount = item.Amount;
profileSalary.positionSalaryAmount = item.PositionSalaryAmount;
// const str = item.PosNoName;