refactor: time problem
This commit is contained in:
parent
5775c9d5f1
commit
d060ae5f92
3 changed files with 11 additions and 7 deletions
|
|
@ -828,7 +828,6 @@ export const useEmployeeForm = defineStore('form-employee', () => {
|
|||
};
|
||||
|
||||
currentFromDataEmployee.value = structuredClone(resetEmployeeData);
|
||||
|
||||
const foundBranch = await customerStore.fetchListCustomeBranchById(
|
||||
playlond.customerBranchId,
|
||||
);
|
||||
|
|
@ -843,7 +842,10 @@ export const useEmployeeForm = defineStore('form-employee', () => {
|
|||
|
||||
state.value.formDataEmployeeOwner = { ...foundBranch };
|
||||
|
||||
if (foundBranch.address === playlond.address) {
|
||||
if (
|
||||
foundBranch.address === playlond.address &&
|
||||
foundBranch.zipCode === playlond.zipCode
|
||||
) {
|
||||
state.value.formDataEmployeeSameAddr = true;
|
||||
} else {
|
||||
state.value.formDataEmployeeSameAddr = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue