This commit is contained in:
CHIEFSOFT\ameye
2024-07-20 15:07:33 -04:00
parent 642e09045e
commit 7f0576db5d
+6 -1
View File
@@ -535,7 +535,10 @@ long WrenchJobsInterestStats(CVars in, CVars &out) {
load_db_record(out, "SELECT count(id) AS total_complete FROM members_jobs_contract WHERE client_id = %lu AND status =7", out["client_id"].Long()); //pending jobs
if ( out["total_complete"].Long() > 0 ){
load_db_record(out, "SELECT count(id) AS total_jobs FROM members_jobs_contract WHERE client_id = %lu AND status IN (7,4,5)", out["client_id"].Long()); //pendi
sprintf(buf, "%.2f %", 100* out["total_complete"].Long() / out["total_jobs"].Long());
sprintf(buf, "%.02f %", 100* out["total_complete"].Long() / out["total_jobs"].Long());
logfmt(logINFO, "% *********** Buf ******************** %s", buf);
out["job_percent_complete"] = buf;
}
@@ -545,6 +548,7 @@ long WrenchJobsInterestStats(CVars in, CVars &out) {
ret = PHP_CREATED_OK;
} catch (bad_parameter) {
out["log_status"] = "Error WrenchJobsInterestStats";
logfmt(logINFO, "/Error WrenchJobsInterestStats ");
}
return ret;
@@ -658,6 +662,7 @@ long WrenchJobsOfferInterestList(CVars in, CVars &out) {
} catch (bad_parameter) {
out["log_status"] = "Error WrenchJobsOfferInterestList";
logfmt(logINFO, "/Error WrenchJobsOfferInterestList");
}
return ret;