Job interest price

This commit is contained in:
CHIEFSOFT\ameye
2023-06-14 07:33:44 -04:00
parent 046df39c78
commit 97197bc676
3 changed files with 9 additions and 1 deletions
+3 -1
View File
@@ -270,7 +270,7 @@ long WrenchJobsOfferInterestList(CVars in, CVars &out) {
const PGresult *res = pgsql_query("SELECT mm.id AS client_id, mm.uid AS client_uid, "
" mm.firstname AS client_name, m.offer_code, m.uid AS offer_uid, "
" mo.member_id, to_char(mo.added, 'Dy Mon dd, yyyy HH:MI AM') AS sent, "
" j.title,j.description,m.job_id,to_char( m.expire, 'Dy Mon dd, yyyy HH:MI AM') AS expire "
" j.title,j.description,m.job_id,to_char( m.expire, 'Dy Mon dd, yyyy HH:MI AM') AS expire,j.price AS job_price "
" FROM members_offer_interest mo "
" LEFT JOIN members_jobs_offer m ON m.id = mo.offer_id "
" LEFT JOIN members_jobs j ON j.id=m.job_id "
@@ -318,6 +318,8 @@ long WrenchJobsOfferInterestList(CVars in, CVars &out) {
snprintf(vname, sizeof (vname), "expire_%05d", i);
out[vname] = rec["expire"];
snprintf(vname, sizeof (vname), "price_%05d", i);
out[vname] = rec["job_price"];
}
}
+3
View File
@@ -105,6 +105,9 @@ class ResultFormatter extends Model
"description" => $out["description_${key}"],
"job_id" => $out["job_id_${key}"],
"expire" => $out["expire_${key}"],
"price" => $out["price_${key}"],
'currency' => 'Naira',
'currency_code' => 'NGN',
);
}
+3
View File
@@ -98,6 +98,9 @@ function processOutJson($in, $out) {
"description" => $out["description_${key}"],
"job_id" => $out["job_id_${key}"],
"expire" => $out["expire_${key}"],
"price" => $out["price_${key}"],
'currency' => 'Naira',
'currency_code' => 'NGN',
);
}