job created

This commit is contained in:
CHIEFSOFT\ameye
2023-09-11 08:33:21 -04:00
parent e78d3c3717
commit a5c7732b6d
2 changed files with 7 additions and 1 deletions
+6 -1
View File
@@ -208,7 +208,7 @@ long WrenchJobManagerList( CVars in, CVars &out){
res = pgsql_query("SELECT id FROM members_jobs WHERE member_id = %lu AND status=1 ORDER BY id DESC", in["member_id"].Long());
out["total_record"] = pgsql_num_rows(res);
res = pgsql_query("SELECT j.id AS job_id, j.*,c.code AS currency_code, c.description AS currency_description "
res = pgsql_query("SELECT j.id AS job_id, j.*,c.code AS currency_code, c.description AS currency_description,j.created AS job_create_date "
" FROM members_jobs j "
" LEFT JOIN currency c ON c.country=j.country "
" WHERE j.member_id = %lu AND j.status=1 "
@@ -264,6 +264,11 @@ long WrenchJobManagerList( CVars in, CVars &out){
snprintf(vname, sizeof (vname), "job_uid_%05d", i);
out[vname] = rec["uid"];
snprintf(vname, sizeof (vname), "created_%05d", i);
out[vname] = rec["job_create_date"];
}
}
ret = PHP_API_OK;
+1
View File
@@ -549,6 +549,7 @@ class ResultFormatter extends Model
"contract_uid" => $out["contract_uid_${key}"],
"job_id" => $out["job_id_${key}"],
"contract" => $out["contract_${key}"],
"created" => $out["created_${key}"],
"status_description" => $out["status_description_${key}"],
"delivery_date" => $out["delivery_date_${key}"],
"owner_status" => $out["owner_status_${key}"],