This commit is contained in:
Rizki
2026-03-24 21:35:20 +07:00
parent a93d3024ac
commit 65bcd4ffd4

View File

@ -147,10 +147,13 @@ class BastAdapter extends Adapter {
let qry = "select v.*, po.rate_snapshot AS po_rate_snapshot, " + let qry = "select v.*, po.rate_snapshot AS po_rate_snapshot, " +
"COALESCE(c.currency, 'USD') AS currency_code, COALESCE(c.symbol, '$') AS currency_symbol, " + "COALESCE(c.currency, 'USD') AS currency_code, COALESCE(c.symbol, '$') AS currency_symbol, " +
"COALESCE(pc.currency, 'USD') AS pr_currency_code, COALESCE(pc.symbol, '$') AS pr_currency_symbol, " +
"rb.amount AS request_budget_amount " + "rb.amount AS request_budget_amount " +
"from vw_bastactivitylistdetail v " + "from vw_bastactivitylistdetail v " +
"left join tbl_po po on po._idx = v.idxpo " + "left join tbl_po po on po._idx = v.idxpo " +
"left join tbl_currency c on c._idx = po.currency_id " + "left join tbl_currency c on c._idx = po.currency_id " +
"left join tbl_pr prr on prr._idx = v.idxpr " +
"left join tbl_currency pc on pc._idx = prr.currency_id " +
"left join tbl_justification j on j._idx = po.idxjustification " + "left join tbl_justification j on j._idx = po.idxjustification " +
"left join tbl_requestbudget rb on rb._idx = j.idxrequestbudget " + "left join tbl_requestbudget rb on rb._idx = j.idxrequestbudget " +
"where v.idxpr='" + idxpr + "'"; "where v.idxpr='" + idxpr + "'";