feat: add order field
This commit is contained in:
parent
aa8dcdaf86
commit
0bd2c1ecf2
11 changed files with 79 additions and 26 deletions
|
|
@ -296,6 +296,7 @@ export class CustomerController extends Controller {
|
|||
},
|
||||
data: {
|
||||
...payload,
|
||||
statusOrder: +(payload.status === "INACTIVE"),
|
||||
code: `${last.key.slice(9)}${last.value.toString().padStart(6, "0")}`,
|
||||
branch: {
|
||||
createMany: {
|
||||
|
|
@ -420,6 +421,7 @@ export class CustomerController extends Controller {
|
|||
where: { id: customerId },
|
||||
data: {
|
||||
...payload,
|
||||
statusOrder: +(payload.status === "INACTIVE"),
|
||||
branch:
|
||||
(customerBranch && {
|
||||
deleteMany: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue