From c84b992c0c9c10f8dce5024a1e455fddc78dd0d7 Mon Sep 17 00:00:00 2001 From: Adisak Date: Wed, 18 Feb 2026 15:50:55 +0700 Subject: [PATCH] #2315 --- src/controllers/CommandController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index b948289e..374dd56f 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -7386,7 +7386,7 @@ export class CommandController extends Controller { profile.employeeClass = "PERM"; const _null: any = null; profile.employeeWage = item.amount == null ? _null : item.amount.toString(); - profile.dateStart = new Date(); + profile.dateStart = _command ? _command.commandExcecuteDate : new Date(); profile.dateAppoint = new Date(); profile.amount = item.amount == null ? _null : item.amount; profile.amountSpecial = item.amountSpecial == null ? _null : item.amountSpecial;