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) => {
|
body.refIds.map(async (item, i) => {
|
||||||
const posMasterAct = await this.posMasterActRepository.findOne({
|
const posMasterAct = await this.posMasterActRepository.findOne({
|
||||||
relations: [
|
relations: [
|
||||||
"posMaster",
|
|
||||||
"posMaster",
|
"posMaster",
|
||||||
"posMaster.orgRoot",
|
"posMaster.orgRoot",
|
||||||
"posMaster.orgChild1",
|
"posMaster.orgChild1",
|
||||||
|
|
@ -3172,18 +3171,17 @@ export class CommandController extends Controller {
|
||||||
.join("/");
|
.join("/");
|
||||||
var _data = {
|
var _data = {
|
||||||
no: Extension.ToThaiNumber((i + 1).toString()),
|
no: Extension.ToThaiNumber((i + 1).toString()),
|
||||||
fullName:
|
fullName: `${item.Prefix ?? ""}${item.FirstName ?? ""} ${item.LastName ?? ""}`,
|
||||||
posMasterAct.posMasterChild?.current_holder?.prefix ??
|
|
||||||
"" + posMasterAct.posMasterChild?.current_holder?.firstName ??
|
|
||||||
"" + " " + posMasterAct.posMasterChild?.current_holder?.lastName ??
|
|
||||||
null,
|
|
||||||
oc:
|
oc:
|
||||||
(posMasterAct.posMasterChild?.current_holder?.position ?? "-") +
|
(posMasterAct.posMasterChild?.current_holder?.position ?? "-") +
|
||||||
"/" +
|
"/" +
|
||||||
(_organization ?? "-"),
|
(_organization ?? "-"),
|
||||||
postype: posMasterAct.posMasterChild?.current_holder?.posType?.posTypeName ?? "-",
|
postype: posMasterAct.posMasterChild?.current_holder?.posType?.posTypeName ?? "-",
|
||||||
poslevel: posMasterAct.posMasterChild?.current_holder?.posLevel?.posLevelName ?? "-",
|
poslevel: posMasterAct.posMasterChild?.current_holder?.posLevel?.posLevelName ?? "-",
|
||||||
organizationNew: _organizationNew ?? "-",
|
organizationNew:
|
||||||
|
(posMasterAct.posMaster?.current_holder?.position ?? "-") +
|
||||||
|
"/" +
|
||||||
|
(_organizationNew ?? "-"),
|
||||||
// date: Extension.ToThaiShortDate_noPrefix(new Date()),
|
// date: Extension.ToThaiShortDate_noPrefix(new Date()),
|
||||||
dateStart: "-",
|
dateStart: "-",
|
||||||
dateEnd: "-",
|
dateEnd: "-",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue