feat: add order field
This commit is contained in:
parent
aa8dcdaf86
commit
0bd2c1ecf2
11 changed files with 79 additions and 26 deletions
|
|
@ -395,6 +395,7 @@ export class EmployeeController extends Controller {
|
|||
},
|
||||
data: {
|
||||
...rest,
|
||||
statusOrder: +(rest.status === "INACTIVE"),
|
||||
code: `${customerBranch.customer.code}-${customerBranch.branchNo.toString().padStart(2, "0")}-${new Date().getFullYear().toString().slice(-2).padStart(2, "0")}${last.value.toString().padStart(4, "0")}`,
|
||||
employeeWork: {
|
||||
createMany: {
|
||||
|
|
@ -562,6 +563,7 @@ export class EmployeeController extends Controller {
|
|||
},
|
||||
data: {
|
||||
...rest,
|
||||
statusOrder: +(rest.status === "INACTIVE"),
|
||||
code,
|
||||
customerBranch: { connect: customerBranchId ? { id: customerBranchId } : undefined },
|
||||
employeeWork: employeeWork
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue