scanner in CustomerSelector.vue
This commit is contained in:
@@ -48,10 +48,10 @@ async function findById(id: string): Promise<Customer | undefined> {
|
||||
});
|
||||
}
|
||||
|
||||
async function findByCode(code: string): Promise<Customer | undefined> {
|
||||
async function findByCode(code: string, storeId = getCurrentStoreId()): Promise<Customer | undefined> {
|
||||
return await axios.post(`${BASE_URI}/find/code`, null, {
|
||||
params: {
|
||||
storeId: getCurrentStoreId(),
|
||||
storeId,
|
||||
code
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user