refactor: handle active only employee
This commit is contained in:
parent
83774ff09e
commit
e61678f3f5
1 changed files with 2 additions and 0 deletions
|
|
@ -223,6 +223,7 @@ async function getWorkerList() {
|
||||||
query: state.search,
|
query: state.search,
|
||||||
passport: true,
|
passport: true,
|
||||||
customerBranchId: props.customerBranchId,
|
customerBranchId: props.customerBranchId,
|
||||||
|
activeOnly: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!ret) return false;
|
if (!ret) return false;
|
||||||
|
|
@ -241,6 +242,7 @@ async function getWorkerFromCriteria(
|
||||||
page: 1,
|
page: 1,
|
||||||
passport: true,
|
passport: true,
|
||||||
customerBranchId: props.customerBranchId,
|
customerBranchId: props.customerBranchId,
|
||||||
|
activeOnly: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!ret) return false; // error, do not close dialog
|
if (!ret) return false; // error, do not close dialog
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue