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;