enhanced return

This commit is contained in:
CHIEFSOFT\ameye
2024-09-30 23:07:04 -04:00
parent 7e7e789fd8
commit c5460ddd20
+5 -1
View File
@@ -1148,7 +1148,11 @@ long WrenchConcludeJobsOffer(CVars in, CVars &out) {
/*
READ OUT THE CONTRACT
*/
load_db_record(out, "SELECT id AS contact_id, uid as contract_uid,contract FROM members_jobs_contract WHERE id = %lu", contract_id);
load_db_record(out, "SELECT c.id AS contact_id, c.uid as contract_uid, c.contract,j.description AS job_description, j.timeline_days,j.price,cc.description AS currency "
" FROM members_jobs_contract c "
" LEFT JOIN members_jobs j ON j.id = c.job_id "
" LEFT JOIN currency cc ON cc.country = j.country "
" WHERE c.id = %lu", contract_id);
}
break;