add scroll to load invoices and fixed limited category and customer issue in payment and expense

This commit is contained in:
asift798
2022-02-02 18:51:32 +05:30
parent 221184df41
commit 1d402e0143
6 changed files with 100 additions and 12 deletions

View File

@ -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
}