mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
add scroll to load invoices and fixed limited category and customer issue in payment and expense
This commit is contained in:
@ -82,6 +82,13 @@ async function searchCustomers(search) {
|
||||
}
|
||||
|
||||
let res = await customerStore.fetchCustomers(data)
|
||||
if(res.data.data.length>0 && customerStore.editCustomer) {
|
||||
let checkCustomerExist = res.data.data.find((c) => c.id==customerStore.editCustomer.id)
|
||||
if(!checkCustomerExist) {
|
||||
let edit_customer = Object.assign({}, customerStore.editCustomer)
|
||||
res.data.data.push(edit_customer)
|
||||
}
|
||||
}
|
||||
|
||||
return res.data.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user