add filtering pr

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Iki
2026-05-15 16:53:31 +07:00
parent 6b0cdbb7b7
commit 8076de8e15

View File

@ -446,7 +446,7 @@ class PrAdapter extends Adapter {
"%' or trim(v.justificationnumber) like '%" +
keyword +
"%') ";
if (status !== "-1") {
if (status !== undefined && status !== null && status !== "") {
qry += "and v.status in(" + status + ") ";
}
if (swherenik) {
@ -485,7 +485,7 @@ class PrAdapter extends Adapter {
"%' or trim(v.justificationnumber) like '%" +
keyword +
"%') ";
if (status !== "-1") {
if (status !== undefined && status !== null && status !== "") {
qry += "and v.status in(" + status + ") ";
}
if (division && division.trim() !== "") {