diff --git a/src/components/shared/select/SelectCustomer.vue b/src/components/shared/select/SelectCustomer.vue index c5c08819..5644dd79 100644 --- a/src/components/shared/select/SelectCustomer.vue +++ b/src/components/shared/select/SelectCustomer.vue @@ -44,6 +44,7 @@ const { getOptions, setFirstValue, getSelectedOption, filter } = const ret = await getList({ query, ...props.params, + activeRegisBranchOnly: true, includeCustomer: true, }); if (ret) return ret.result; diff --git a/src/stores/customer/index.ts b/src/stores/customer/index.ts index ca111974..1e7e1f05 100644 --- a/src/stores/customer/index.ts +++ b/src/stores/customer/index.ts @@ -79,6 +79,7 @@ const useCustomerStore = defineStore('api-customer', () => { customerId?: string; company?: boolean; includeCustomer?: boolean; + activeRegisBranchOnly?: boolean; registeredBranchId?: string; status?: 'CREATED' | 'ACTIVE' | 'INACTIVE'; query?: string;