Compare commits

..
Author SHA1 Message Date
aziz_28002andClaude Sonnet 5 a5bbc24ecf fix: make order search case-insensitive
Runner Test / test (push) Successful in 16s
Runner Test / test (pull_request) Successful in 14s
instr() in SQLite compares bytes, so searching for a customer name
in uppercase (e.g. "JOHN") silently missed lowercase-stored matches
like "John". Lowercase both sides of the order number, name, and
email comparisons so search matches regardless of the case staff
paste in.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-16 20:41:45 +04:00
@@ -7,7 +7,7 @@ let app: AppWithContext;
let employeeCookie = "";
function firstHeader(value: string | string[] | undefined) {
return Array.isArray(value) ? (value[0] ?? "") : value ?? "";
return Array.isArray(value) ? value[0] : value ?? "";
}
async function login(username: string) {