fix แนบท้ายคำสั่งรักษาการ
This commit is contained in:
parent
cf3604929f
commit
0816d6b0e3
1 changed files with 5 additions and 7 deletions
|
|
@ -3122,7 +3122,6 @@ export class CommandController extends Controller {
|
|||
body.refIds.map(async (item, i) => {
|
||||
const posMasterAct = await this.posMasterActRepository.findOne({
|
||||
relations: [
|
||||
"posMaster",
|
||||
"posMaster",
|
||||
"posMaster.orgRoot",
|
||||
"posMaster.orgChild1",
|
||||
|
|
@ -3172,18 +3171,17 @@ export class CommandController extends Controller {
|
|||
.join("/");
|
||||
var _data = {
|
||||
no: Extension.ToThaiNumber((i + 1).toString()),
|
||||
fullName:
|
||||
posMasterAct.posMasterChild?.current_holder?.prefix ??
|
||||
"" + posMasterAct.posMasterChild?.current_holder?.firstName ??
|
||||
"" + " " + posMasterAct.posMasterChild?.current_holder?.lastName ??
|
||||
null,
|
||||
fullName: `${item.Prefix ?? ""}${item.FirstName ?? ""} ${item.LastName ?? ""}`,
|
||||
oc:
|
||||
(posMasterAct.posMasterChild?.current_holder?.position ?? "-") +
|
||||
"/" +
|
||||
(_organization ?? "-"),
|
||||
postype: posMasterAct.posMasterChild?.current_holder?.posType?.posTypeName ?? "-",
|
||||
poslevel: posMasterAct.posMasterChild?.current_holder?.posLevel?.posLevelName ?? "-",
|
||||
organizationNew: _organizationNew ?? "-",
|
||||
organizationNew:
|
||||
(posMasterAct.posMaster?.current_holder?.position ?? "-") +
|
||||
"/" +
|
||||
(_organizationNew ?? "-"),
|
||||
// date: Extension.ToThaiShortDate_noPrefix(new Date()),
|
||||
dateStart: "-",
|
||||
dateEnd: "-",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue