Hard coded currency removed

This commit is contained in:
CHIEFSOFT\ameye
2023-06-27 15:14:09 -04:00
parent 3bac00b6a0
commit 4614f79ff3
3 changed files with 19 additions and 8 deletions
+1 -1
View File
@@ -190,8 +190,8 @@ long WrenchJobManagerList( CVars in, CVars &out){
res = pgsql_query("SELECT j.id AS job_id, j.*,c.code AS currency_code, c.description AS currency_description "
" FROM members_jobs j "
" WHERE j.member_id = %lu AND j.status=1 "
" LEFT JOIN currency c ON c.country=j.country "
" WHERE j.member_id = %lu AND j.status=1 "
" ORDER BY j.id DESC LIMIT %lu OFFSET %lu", in["member_id"].Long(), limit, offset);
if (res != NULL && pgsql_num_rows(res) > 0) {