fix: error
This commit is contained in:
parent
d5678c537f
commit
11a6918e96
1 changed files with 1 additions and 1 deletions
|
|
@ -1047,7 +1047,7 @@ export class QuotationActionController extends Controller {
|
|||
const data = await tx.employee.create({
|
||||
data: {
|
||||
...v.workerData,
|
||||
code: `${customerBranch.code}-${`${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 - newEmployee.length + i + 1}`.padStart(7, "0")}`,
|
||||
customerBranchId: customerBranch.id,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue