client added

This commit is contained in:
CHIEFSOFT\ameye
2023-06-16 11:01:54 -04:00
parent 6c48d7fb48
commit 751615bc10
3 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -269,7 +269,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, "
" mo.member_id, mm.added::date AS client_added, 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.price AS job_price "
" FROM members_offer_interest mo "
" LEFT JOIN members_jobs_offer m ON m.id = mo.offer_id "
@@ -297,6 +297,9 @@ long WrenchJobsOfferInterestList(CVars in, CVars &out) {
snprintf(vname, sizeof (vname), "client_name_%05d", i);
out[vname] = rec["client_name"];
snprintf(vname, sizeof (vname), "client_added_%05d", i);
out[vname] = rec["client_added"];
snprintf(vname, sizeof (vname), "offer_code_%05d", i);
out[vname] = rec["offer_code"];
+1
View File
@@ -98,6 +98,7 @@ class ResultFormatter extends Model
"client_id" => $out["client_id_${key}"],
"client_uid" => $out["client_uid_${key}"],
"client_name" => $out["client_name_${key}"],
"client_added" => $out["client_added_${key}"],
"offer_code" => $out["offer_code_${key}"],
"offer_uid" => $out["offer_uid_${key}"],
"sent" => $out["sent_${key}"],
+1
View File
@@ -91,6 +91,7 @@ function processOutJson($in, $out) {
"client_id" => $out["client_id_${key}"],
"client_uid" => $out["client_uid_${key}"],
"client_name" => $out["client_name_${key}"],
"client_added" => $out["client_added_${key}"],
"offer_code" => $out["offer_code_${key}"],
"offer_uid" => $out["offer_uid_${key}"],
"sent" => $out["sent_${key}"],