diff --git a/adapter/justificationadapter.js b/adapter/justificationadapter.js index 856648a..6705e91 100644 --- a/adapter/justificationadapter.js +++ b/adapter/justificationadapter.js @@ -56,7 +56,11 @@ class JustificationAdapter extends Adapter{ let id = req.query.id; // console.log(req); - let qry = "select * from vw_requestbudget order by id asc"; + let qry = "select v.*, r.currency_id, r.rate_snapshot, c.currency AS currency_code, c.symbol AS currency_symbol "; + qry += "from vw_requestbudget v "; + qry += "left join tbl_requestbudget r on r._idx = v.id "; + qry += "left join tbl_currency c on c._idx = r.currency_id "; + qry += "order by v.id asc"; // console.log(qry); db.query(qry,[],function(err,result,fields){