This commit is contained in:
CHIEFSOFT\ameye
2023-05-15 11:22:16 -04:00
parent 1edda40993
commit a40cf58092
+1 -1
View File
@@ -289,7 +289,7 @@ long WrenchJobManagerActiveTasksList(CVars in, CVars &out) {
" WHEN mc.status = 1 AND mc.delivery_date <now() THEN 'Past Due' "
" ELSE 'Others' END) AS status_description,mc.delivery_date "
" FROM members_jobs_contract mc LEFT JOIN members_jobs mj ON mj.id = mc.job_id LEFT JOIN members m ON m.id=mc.client_id "
" WHERE mc.client_id =%lu AND mc.status IN (1,2,4) "
" WHERE mc.member_id =%lu AND mc.status IN (1,2,4) "
" ORDER BY mc.id DESC LIMIT %lu OFFSET %lu", in["member_id"].Long(), limit, offset);
//ORDER BY id DESC LIMIT %lu OFFSET %lu", in["member_id"].Long(), limit, offset);
if (res != NULL && pgsql_num_rows(res) > 0) {