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

View File

@ -33,10 +33,11 @@ function buildPrAccount({prNo, qtyAcc, prDate, budget, costCenter, profitCenter}
function buildPrItem({prNo, shortText, qty, unit, price, prDate}) { function buildPrItem({prNo, shortText, qty, unit, price, prDate}) {
return buildPipeString(80, { return buildPipeString(80, {
0: prNo, 0: prNo,
3: "120", 3: "TIL",
4: "Putra", 4: "Putra",
5: shortText, 5: shortText,
13: "1603", 13: "1603",
14: "TIL1",
15: "TrackNo1", 15: "TrackNo1",
16: "ZSRV", 16: "ZSRV",
18: qty, 18: qty,