basic functionality pot implemented
This commit is contained in:
@ -17,7 +17,7 @@ export const getCustomers = async (result) => {
|
||||
//get all selected customers
|
||||
export const getSelectedCustomers = async (selected, result) => {
|
||||
try {
|
||||
let sql = `SELECT * FROM customers WHERE customername LIKE '%${selected}%' ORDER BY customername ASC`;
|
||||
let sql = `SELECT * FROM customers WHERE LOWER(customername) LIKE '%${selected.toLowerCase()}%' ORDER BY customername ASC`;
|
||||
const results = await ownConn.execute(sql)
|
||||
result(null, results);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user