fix: wrong code
This commit is contained in:
parent
448e3b555c
commit
57d0ccb417
1 changed files with 1 additions and 1 deletions
|
|
@ -371,7 +371,7 @@ export class QuotationController extends Controller {
|
||||||
tx.employee.create({
|
tx.employee.create({
|
||||||
data: {
|
data: {
|
||||||
...v,
|
...v,
|
||||||
code: `${customerBranch.id}-${`${new Date().getFullYear()}`.slice(-2).padStart(2, "0")}${`${lastEmployee.value - nonExistEmployee.length + i + 1}`.padStart(7, "0")}`,
|
code: `${customerBranch.code}-${`${new Date().getFullYear()}`.slice(-2).padStart(2, "0")}${`${lastEmployee.value - nonExistEmployee.length + i + 1}`.padStart(7, "0")}`,
|
||||||
customerBranchId: customerBranch.id,
|
customerBranchId: customerBranch.id,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue