upd
This commit is contained in:
@ -14,9 +14,13 @@ class PrAdapter extends Adapter {
|
||||
// console.log(req);
|
||||
let nik = req.query.nik;
|
||||
let qry =
|
||||
"select * from vw_justification where iscreatepr=0 and status=2 and iby='" +
|
||||
nik +
|
||||
"' order by id asc";
|
||||
"SELECT v.*, r.currency_id, COALESCE(c.rate, 1) AS currency_rate, " +
|
||||
"c.currency AS currency_code, c.symbol AS currency_symbol " +
|
||||
"FROM vw_justification v " +
|
||||
"LEFT JOIN tbl_requestbudget r ON r._idx = v.idxrequestbudget " +
|
||||
"LEFT JOIN tbl_currency c ON c._idx = r.currency_id " +
|
||||
"WHERE v.iscreatepr=0 AND v.status=2 AND v.iby='" + nik + "' " +
|
||||
"ORDER BY v.id ASC";
|
||||
|
||||
// console.log(qry);
|
||||
db.query(qry, [], function (err, result, fields) {
|
||||
|
||||
Reference in New Issue
Block a user