change PR Group and Stor Loc

This commit is contained in:
Iki
2026-06-11 14:53:57 +09:00
parent 8076de8e15
commit 05c77d0c6b
2 changed files with 4 additions and 2 deletions

View File

@ -437,6 +437,7 @@ class PrAdapter extends Adapter {
qryBase += "from vw_pr v ";
qryBase += "left join tbl_pr p on p._idx = v.id ";
qryBase += "left join tbl_currency c on c._idx = p.currency_id ";
qryBase += "left join tbl_justification j on j._idx = v.idxjustification ";
let qry = qryBase;
qry +=
"where (trim(v.trxidpr) like '%" +
@ -453,7 +454,7 @@ class PrAdapter extends Adapter {
qry += "and " + swherenik + " ";
}
if (sdivision) {
qry += "and " + sdivision + " ";
qry += "and j.division = '" + division + "' ";
}
// qry += "order by id asc limit " + offset + ", " + limit;